MCPcopy Create free account
hub / github.com/apache/arrow / SetUp

Method SetUp

cpp/src/arrow/sparse_tensor_test.cc:1210–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1208class TestSparseCSCMatrixEquality : public TestSparseTensorBase<ValueType> {
1209 public:
1210 void SetUp() {
1211 shape_ = {6, 4};
1212 values1_ = {1, 0, 2, 0, 0, 3, 0, 4, 5, 0, 6, 0,
1213 0, 11, 0, 12, 13, 0, 14, 0, 0, 15, 0, 16};
1214 values2_ = {9, 0, 2, 0, 0, 3, 0, 4, 5, 0, 6, 0,
1215 0, 11, 0, 12, 13, 0, 14, 0, 0, 15, 0, 16};
1216 auto buffer1 = Buffer::Wrap(values1_);
1217 auto buffer2 = Buffer::Wrap(values2_);
1218 DCHECK_OK(NumericTensor<ValueType>::Make(buffer1, shape_).Value(&tensor1_));
1219 DCHECK_OK(NumericTensor<ValueType>::Make(buffer2, shape_).Value(&tensor2_));
1220 }
1221
1222 protected:
1223 using TestSparseTensorBase<ValueType>::shape_;

Callers

nothing calls this directly

Calls 3

WrapFunction · 0.85
MakeFunction · 0.70
ValueMethod · 0.45

Tested by

no test coverage detected