Function rgsl::sort::select::sort_smallest_index [−][src]
pub fn sort_smallest_index(
p: &mut [usize],
k: usize,
src: &[f64],
stride: usize
) -> Value
Expand description
This function stores the indices of the k smallest 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 ascending numerical order. k must be less than or equal to n. The data src is not modified by this operation.