Flat input views for reduction #
These kernels consume a certified flat scalar reader instead of requiring an already materialized input tensor. The ordinary reduction definitions and the fused transform-to-reduction path therefore share the same fiber enumeration, accumulator order, and correctness proofs.
Apply a total multiset aggregate to every reduction fiber read through a flat input view.
Instances For
Fold every reduction fiber through one flat scalar reader and one final output allocation.
Instances For
Fold every nonempty reduction fiber from its first flat-view value.
Instances For
Pointwise-equal flat readers produce the same multiset reduction tensor.
Pointwise-equal flat readers produce the same ordered accumulator reduction.
Pointwise-equal flat readers produce the same ordered nonempty reduction.
The fused flat-reader kernel implements the independent multiset reduction semantics.
The fused flat-reader accumulator preserves the independent row-major ordered reduction semantics.
The fused flat-reader nonempty accumulator preserves the independent ordered nonempty reduction semantics.