Skip to content

num::filter

Defined in header <stats/selection.hpp>

template <typename Predicate>
array<idx> filter(idx count, Predicate &&keep);

Return the indices \(i < \mathrm{count}\) for which keep(i) holds, ascending.