bartz.mcmcstep.PopcountReduction¶
- class bartz.mcmcstep.PopcountReduction[source]¶
Count reduction by SWAR popcount on the packed bin indices.
Reinterprets the unsigned indices as 32-bit words holding one or more indices each, flags the lanes equal to a bin with bit arithmetic, and counts the flags with a popcount. Supports only counting (unit values) into a bin range, so it can be used only as
count_reduction_config.