MCPcopy Create free account
hub / github.com/dmlc/xgboost / TEST

Function TEST

tests/cpp/common/test_linalg.cc:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40TEST(Linalg, MatrixView) {
41 size_t kRows = 31, kCols = 77;
42 HostDeviceVector<float> storage;
43 auto m = MakeMatrixFromTest(&storage, kRows, kCols);
44 ASSERT_EQ(m.Device(), CPU());
45 ASSERT_EQ(m(0, 0), 0);
46 ASSERT_EQ(m(kRows - 1, kCols - 1), storage.Size() - 1);
47}
48
49TEST(Linalg, VectorView) {
50 size_t kRows = 31, kCols = 77;

Callers

nothing calls this directly

Calls 15

MakeMatrixFromTestFunction · 0.85
CPUFunction · 0.85
AllFunction · 0.85
MakeTensorViewFunction · 0.85
ConstViewFunction · 0.85
ArrayInterfaceStrFunction · 0.85
NativePopcFunction · 0.85
PopcFunction · 0.85
TransformIdxKernelFunction · 0.85
StackFunction · 0.85
cbeginFunction · 0.85
cendFunction · 0.85

Tested by

no test coverage detected