class SubgroupSegmented
package quadrants.simt
Segmented subgroup reductions: per-lane inclusive reductions that reset at
every non-zero headFlag, mirroring the Python binding's
segmented_reduce_{add,min,max}_tiled semantics over the active subgroup.
Lane i combines values from the nearest lane at or below i whose
headFlag is non-zero (lane 0 is an implicit head). The implementation is
the classic flag-carrying Hillis-Steele scan over Subgroup.shuffle, so it
stays portable across every backend that supports subgroup shuffles, and it
degenerates to the identity on width-1 subgroups (for example the CPU
backend). Callers must keep control flow uniform across the subgroup.