Skip to main content

merge_sort_argsort

Function merge_sort_argsort 

Source
pub fn merge_sort_argsort(data: &[f64]) -> Vec<usize>
Expand description

Merge sort returning the sorted permutation (argsort, stable).

result[k] is the original index of the k-th smallest element.