Skip to main content

Module zorder

Module zorder 

Source
Expand description

ND Z-order (Morton) encode/decode.

Bit-interleaving fallback for non-uniform dim sizes — cheap to compute, less locality than Hilbert but tolerates dims of differing granularity. Same n × bits <= 64 constraint as super::hilbert.

Functions§

decode
Inverse of encode.
encode
Interleave per-dim bits into a single Z-order index, MSB first.