pub fn to_reshaped_coord<'a>(
original: &'a Slice,
reshaped: &'a Slice,
) -> impl Fn(&[usize]) -> Vec<usize> + 'a
Expand description
Constructs a function that maps coordinates from the original slice to equivalent coordinates in the reshaped slice, preserving their flat (linear) position.