Function rgsl::sort::select::sort_largest_index[][src]

pub fn sort_largest_index(
    p: &mut [usize],
    k: usize,
    src: &[f64],
    stride: usize
) -> Value
Expand description

This function stores the indices of the k largest elements of the array src, of size n and stride stride, in the array p. The indices are chosen so that the corresponding data is in descending numerical order. k must be less than or equal to n. The data src is not modified by this operation.