MCPcopy Create free account
hub / github.com/ParAlg/gbbs / integer_sort_with_counts

Function integer_sort_with_counts

pbbslib/integer_sort.h:246–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244
245template <typename Tint = size_t, typename Seq, typename Get_Key>
246std::pair<sequence<typename Seq::value_type>, sequence<Tint>>
247integer_sort_with_counts(Seq const &In, Get_Key const &g, size_t num_buckets) {
248 size_t bits = log2_up(num_buckets);
249 auto R = integer_sort(In, g, bits);
250 return std::make_pair(std::move(R), get_counts<Tint>(R, g, num_buckets));
251}
252
253} // namespace pbbs

Callers

nothing calls this directly

Calls 2

integer_sortFunction · 0.85
log2_upFunction · 0.70

Tested by

no test coverage detected