[][src]Function moore_hilbert_sys::hilbert_c2i

pub unsafe extern "C" fn hilbert_c2i(
    nDims: c_uint,
    nBits: c_uint,
    coord: *const BitmaskT
) -> BitmaskT

Convert coordinates of a point on a Hilbert curve to its index.

Arguments

  • nDims - Number of coordinates.
  • nBits - Number of bits/coordinate.
  • coord - Array of n nBits-bit coordinates.

Returns

  • index - Output index value. nDims*nBits bits.

Assumptions

nDims * nBits <= (sizeof BitmaskT) * (bits_per_byte)