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

Method SparseCOOIndex

cpp/src/arrow/sparse_tensor.cc:288–292  ·  view source on GitHub ↗

Constructor with a contiguous NumericTensor

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

stridesMethod · 0.80
typeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected