Function row_major_strides
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.
§Panics
Panics when a stride or the element count of a non-empty shape does not
fit isize. A shape with a zero extent never panics.
§Examples
use strided_view::row_major_strides;
// C default: last index varies fastest.
assert_eq!(row_major_strides(&[2, 3]).as_slice(), &[3, 1]);