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

Method SparseCSXIndex

cpp/src/arrow/sparse_tensor.h:278–283  ·  view source on GitHub ↗

\brief Construct SparseCSXIndex from two index vectors

Source from the content-addressed store, hash-verified

276
277 /// \brief Construct SparseCSXIndex from two index vectors
278 explicit SparseCSXIndex(const std::shared_ptr<Tensor>& indptr,
279 const std::shared_ptr<Tensor>& indices)
280 : SparseIndexBase<SparseIndexType>(), indptr_(indptr), indices_(indices) {
281 CheckSparseCSXIndexValidity(indptr_->type(), indices_->type(), indptr_->shape(),
282 indices_->shape(), SparseIndexType::kTypeName);
283 }
284
285 /// \brief Return a 1D tensor of indptr vector
286 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