Skip to main content

encode

Function encode 

Source
pub fn encode(coords: &[u64], bits: u32) -> ArrayResult<u64>
Expand description

Encode per-dim integer coordinates into a single Hilbert index.

coords.len() must be <= MAX_DIMS; bits * coords.len() must be <= 64.