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