pub fn row_major_strides(dims: &[usize]) -> TinyVec<[isize; 8]>Expand description
Compute row-major strides (C default: last index varies fastest).
Returns an inline StrideVec: the result does not allocate at rank
<= INLINE_RANK and spills above it.
ยงExamples
use strided_view::row_major_strides;
// C default: last index varies fastest.
assert_eq!(row_major_strides(&[2, 3]).as_slice(), &[3, 1]);