\brief Construct SparseCSXIndex from two index vectors
| 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_; } |
nothing calls this directly
no test coverage detected