pub fn compute_costs<S>(all_strides: &[S]) -> Vec<isize>where S: AsRef<[isize]>,
Compute the minimum stride cost for each dimension.