pub fn compute_stride<const N: usize>(
    dim: &[usize; N],
    layout: &Layout<N>
) -> [usize; N]
Expand description

Compute correct strides of each index using dimensions and specified layout.