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

Method SparseCSXIndex

cpp/src/arrow/sparse_tensor.h:272–277  ·  view source on GitHub ↗

\brief Construct SparseCSXIndex from two index vectors

Source from the content-addressed store, hash-verified

270
271 /// \brief Construct SparseCSXIndex from two index vectors
272 explicit SparseCSXIndex(const std::shared_ptr<Tensor>& indptr,
273 const std::shared_ptr<Tensor>& indices)
274 : SparseIndexBase<SparseIndexType>(), indptr_(indptr), indices_(indices) {
275 CheckSparseCSXIndexValidity(indptr_->type(), indices_->type(), indptr_->shape(),
276 indices_->shape(), SparseIndexType::kTypeName);
277 }
278
279 /// \brief Return a 1D tensor of indptr vector
280 const std::shared_ptr<Tensor>& indptr() const { return indptr_; }

Callers

nothing calls this directly

Calls 3

typeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected