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