Function col_major_strides
pub fn col_major_strides(
shape: &[usize],
) -> Result<SmallVec<[isize; 8]>, ValidationError>Expand description
Return compact column-major strides for a shape.
§Examples
use tenferro_tensor_core::col_major_strides;
assert_eq!(col_major_strides(&[2, 3])?.as_slice(), &[1, 2]);§Errors
Returns ValidationError::IntegerOverflow when a stride or extent
cannot be represented by the metadata arithmetic.