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

Method SparseCSFIndex

cpp/src/arrow/sparse_tensor.cc:396–403  ·  view source on GitHub ↗

Constructor with two index vectors

Source from the content-addressed store, hash-verified

394
395// Constructor with two index vectors
396SparseCSFIndex::SparseCSFIndex(const std::vector<std::shared_ptr<Tensor>>& indptr,
397 const std::vector<std::shared_ptr<Tensor>>& indices,
398 const std::vector<int64_t>& axis_order)
399 : SparseIndexBase(), indptr_(indptr), indices_(indices), axis_order_(axis_order) {
400 ARROW_CHECK_OK(CheckSparseCSFIndexValidity(indptr_.front()->type(),
401 indices_.front()->type(), indptr_.size(),
402 indices_.size(), axis_order_.size()));
403}
404
405std::string SparseCSFIndex::ToString() const { return std::string("SparseCSFIndex"); }
406

Callers

nothing calls this directly

Calls 3

typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected