Function rgsl::sort::select::sort_vector_smallest_index
source · Expand description
This function stores the indices of the k smallest or largest elements of the vector v in the array p. k must be less than or equal to the length of the vector v.