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

Method MakeSparseCOOIndex

cpp/src/arrow/ipc/tensor_test.cc:305–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303
304 protected:
305 std::shared_ptr<SparseCOOIndex> MakeSparseCOOIndex(
306 const std::vector<int64_t>& coords_shape,
307 const std::vector<int64_t>& coords_strides,
308 std::vector<typename IndexValueType::c_type>& coords_values) const {
309 auto coords_data = Buffer::Wrap(coords_values);
310 auto coords = std::make_shared<NumericTensor<IndexValueType>>(
311 coords_data, coords_shape, coords_strides);
312 return std::make_shared<SparseCOOIndex>(coords);
313 }
314
315 template <typename ValueType>
316 Result<std::shared_ptr<SparseCOOTensor>> MakeSparseCOOTensor(

Callers

nothing calls this directly

Calls 1

WrapFunction · 0.85

Tested by

no test coverage detected