pub fn strides_for<'a>( shape: &'a [usize], ndim: usize, ) -> impl Iterator<Item = usize> + 'a
Construct an iterator over the strides for the given shape and number of dimensions.