particles.hilbert

Hilbert curve and its inverse, in any dimension.

Functions

Hilbert_to_int(coords)

child_start_end(parent_start, parent_end, ...)

gray_decode(n)

gray_decode_travel(start, end, mask, g)

gray_encode(bn)

gray_encode_travel(start, end, mask, i)

hilbert_array(xint)

Compute Hilbert indices.

hilbert_sort(x)

Hilbert sort: sort vectors according to their Hilbert index.

initial_start_end(nChunks, nD)

int_to_Hilbert(i[, nD])

invlogit(x)

pack_coords(chunks, nD)

pack_index(chunks, nD)

transpose_bits(srcs, nDests)

unpack_coords(coords)

unpack_index(i, nD)