Template Function treeweave::guru::for_each_run

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 as for_each_sorted_run. ends[b] is bin b’s one-past-end, i.e. a post-scatter counts array; ends must be non-decreasing (a raw histogram that skipped exclusive_scan + scatter is not a valid input).