(&self)
| 383 | } |
| 384 | |
| 385 | fn is_last_dim_contiguous(&self) -> bool { |
| 386 | let (_, stride, suboffset) = self.dim_desc[self.ndim() - 1]; |
| 387 | suboffset == 0 && stride == self.itemsize as isize |
| 388 | } |
| 389 | |
| 390 | pub fn is_zero_in_shape(&self) -> bool { |
| 391 | self.dim_desc.iter().any(|(shape, _, _)| *shape == 0) |
no test coverage detected