Strides or empty span for old DLPack row-major convention.
| 313 | |
| 314 | /// Strides or empty span for old DLPack row-major convention. |
| 315 | std::span<const int64_t> strides() const { |
| 316 | if (auto strides = tensor().strides; strides != nullptr) { |
| 317 | return {strides, static_cast<std::size_t>(ndim())}; |
| 318 | } |
| 319 | return {}; |
| 320 | } |
| 321 | |
| 322 | bool flag_is_set(uint8_t bits) const { return (ptr_->flags & bits) == bits; } |
| 323 |