Skip to content

num::argsort

Defined in header <stats/selection.hpp>

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

Return the indices that sort values in increasing order, ties by index.

values is any container with size() and operator[].