| 217 | } // namespace |
| 218 | |
| 219 | Result<std::shared_ptr<SparseCOOIndex>> SparseCOOIndex::Make( |
| 220 | const std::shared_ptr<Tensor>& coords, bool is_canonical) { |
| 221 | RETURN_NOT_OK( |
| 222 | CheckSparseCOOIndexValidity(coords->type(), coords->shape(), coords->strides())); |
| 223 | return std::make_shared<SparseCOOIndex>(coords, is_canonical); |
| 224 | } |
| 225 | |
| 226 | Result<std::shared_ptr<SparseCOOIndex>> SparseCOOIndex::Make( |
| 227 | const std::shared_ptr<Tensor>& coords) { |
nothing calls this directly
no test coverage detected