Template Function treeweave::guru::for_each_run
Defined in File guru.hpp
Function Documentation
-
template<class Fn>
void treeweave::guru::for_each_run(std::span<const std::uint32_t> ends, Fn &&fn) fn(id, begin, count)once per non-empty bin, ascending id order — the same callback shape asfor_each_sorted_run.ends[b]is bin b’s one-past-end, i.e. a post-scattercountsarray;endsmust be non-decreasing (a raw histogram that skippedexclusive_scan+scatteris not a valid input).