Skip to content

num::argsort

Defined in header <stats/selection.hpp>

template <typename Values>
array<idx> argsort(const Values &values);

Return the permutation that sorts values ascending, breaking ties by index.