Template Function bats::util::sortperm(const TI&, const TI&)

Function Documentation

template<typename TI>
std::vector<size_t> bats::util::sortperm(const TI &begin, const TI &end)

fill a vector that will return a sort permutation on data

perm[i] is the index of the ith largest element in the container.