Skip to content

num::filter

Defined in header <stats/selection.hpp>

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

Return the indices in [0, count) for which keep(index) is true, in increasing order.