Function strides_for

Source
pub fn strides_for<'a>(
    shape: &'a [usize],
    ndim: usize,
) -> impl Iterator<Item = usize> + 'a
Expand description

Construct an iterator over the strides for the given shape and number of dimensions.