Function treeweave::guru::exclusive_scan

Function Documentation

inline void treeweave::guru::exclusive_scan(std::span<std::uint32_t> counts)

In-place exclusive scan (implicit init 0 — the only correct start offset): counts[b] becomes the start offset of bin b (Reinecke). After a scatter consumes the starts as cursors, counts[b] holds the one-past-end of bin b — the array for_each_run reads.