pub fn col_major_strides(shape: &[usize]) -> Result<StrideVec>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.