\brief Return a number of dimensions of the sparse tensor
| 484 | |
| 485 | /// \brief Return a number of dimensions of the sparse tensor |
| 486 | int ndim() const { return static_cast<int>(shape_.size()); } |
| 487 | |
| 488 | /// \brief Return a vector of dimension names |
| 489 | const std::vector<std::string>& dim_names() const { return dim_names_; } |