Function ha_ndarray::strides_for
source · pub fn strides_for(shape: &[usize], ndim: usize) -> Vec<usize>Expand description
Compute the strides of the given shape, with a result of length ndim.
pub fn strides_for(shape: &[usize], ndim: usize) -> Vec<usize>Compute the strides of the given shape, with a result of length ndim.