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

Method SparseCSFIndex

cpp/src/arrow/sparse_tensor.cc:412–419  ·  view source on GitHub ↗

Constructor with two index vectors

Source from the content-addressed store, hash-verified

410
411// Constructor with two index vectors
412SparseCSFIndex::SparseCSFIndex(const std::vector<std::shared_ptr<Tensor>>& indptr,
413 const std::vector<std::shared_ptr<Tensor>>& indices,
414 const std::vector<int64_t>& axis_order)
415 : SparseIndexBase(), indptr_(indptr), indices_(indices), axis_order_(axis_order) {
416 ARROW_CHECK_OK(CheckSparseCSFIndexValidity(indptr_.front()->type(),
417 indices_.front()->type(), indptr_.size(),
418 indices_.size(), axis_order_.size()));
419}
420
421std::string SparseCSFIndex::ToString() const { return std::string("SparseCSFIndex"); }
422

Callers

nothing calls this directly

Calls 3

typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected