pub fn compute_stride<const N: usize>( dim: &[usize; N], layout: &Layout<N>, ) -> [usize; N]
Compute correct strides of each index using dimensions and specified layout.