hilbertMapping will compute the Hilbert index for each
row of a matrix of integer coordinates corresponding to sub-cubes in a high dimensional space.
a matrix of a matrix of integer coordinates (see
the hilbert order, i.e. the number of cuts in each dimension
Functions: TransposetoAxes AxestoTranspose Purpose: Transform in-place between Hilbert transpose and geometrical axes Example: b=5 bits for each of n=3 coordinates. 15-bit Hilbert integer = A B C D E F G H I J K L M N O is stored as its Transpose X = A D G J M X| X = B E H K N <——-> | /X X = C F I L O axes |/ high low 0—— X Axes are stored conventionally as b-bit integers. Author: John Skilling 20 Apr 2001 to 11 Oct 2003
The source code includes the correction suggested in the following StackOverflow discussion.
a vector of hilbert index, one for each line in
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.