Returns the total number of bytes used by the referenced data. Note that the actual span in memory may be larger if the referenced array has non-contiguous strides (e.g. for a slice).
| 584 | /// in memory may be larger if the referenced array has non-contiguous strides (e.g. for a |
| 585 | /// slice). |
| 586 | ssize_t nbytes() const { return size() * itemsize(); } |
| 587 | }; |
| 588 | |
| 589 | template <typename T, ssize_t Dims> |