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

Method SparseCOOIndex

cpp/src/arrow/sparse_tensor.cc:287–291  ·  view source on GitHub ↗

Constructor with a contiguous NumericTensor

Source from the content-addressed store, hash-verified

285
286// Constructor with a contiguous NumericTensor
287SparseCOOIndex::SparseCOOIndex(const std::shared_ptr<Tensor>& coords, bool is_canonical)
288 : SparseIndexBase(), coords_(coords), is_canonical_(is_canonical) {
289 ARROW_CHECK_OK(
290 CheckSparseCOOIndexValidity(coords_->type(), coords_->shape(), coords_->strides()));
291}
292
293std::string SparseCOOIndex::ToString() const { return std::string("SparseCOOIndex"); }
294

Callers

nothing calls this directly

Calls 4

stridesMethod · 0.80
typeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected