Skip to content

num::smallest_indices

Defined in header <stats/selection.hpp>

template <typename Values>
array<idx> smallest_indices(const Values &values, idx count);

Return the first count indices of argsort(values), without sorting the rest.