shamrock.algs.digit_histogram#
- shamrock.algs.digit_histogram(buf_key: sham::DeviceBuffer<unsigned int, (sham::USMKindTarget)0>, radix_bits: int, len: int) sham::DeviceBuffer<unsigned int, (sham::USMKindTarget)0>#
Histograms of every radix digit place of the first
lenu32 keys ofbuf_key.Returns a
DeviceBuffer_u32of(32 / radix_bits) * 2**radix_bitsbins, digit place major :hist[p * 2**radix_bits + digit]counts the keys whose digitp(bitsp * radix_bitsto(p + 1) * radix_bits - 1) equalsdigit.radix_bitsmust be one of 1, 2, 4, 8.