Function mz_ore::permutations::inverse_argsort
source ยท pub fn inverse_argsort<T>(data: &[T]) -> Vec<usize>where
T: Ord,
Expand description
Construct the permutation that takes data.sorted()
to data
.
pub fn inverse_argsort<T>(data: &[T]) -> Vec<usize>where
T: Ord,
Construct the permutation that takes data.sorted()
to data
.