GADGET-4
peano.h File Reference

declaration of function prototypes used for Peano-Hilbert keys More...

Go to the source code of this file.

Functions

peanokey peano_hilbert_key (MyIntPosType x, MyIntPosType y, MyIntPosType z, int bits)
 
void peano_hilbert_key_inverse (peanokey key, int bits, MyIntPosType *x, MyIntPosType *y, MyIntPosType *z)
 
unsigned char peano_incremental_key (unsigned char pix, unsigned char *rotation)
 

Detailed Description

declaration of function prototypes used for Peano-Hilbert keys

Definition in file peano.h.

Function Documentation

◆ peano_hilbert_key()

peanokey peano_hilbert_key ( MyIntPosType  x,
MyIntPosType  y,
MyIntPosType  z,
int  bits 
)

This function computes a Peano-Hilbert key for an integer triplet (x,y,z), with x,y,z in the range between 0 and 2^bits-1.

Definition at line 83 of file peano.cc.

◆ peano_hilbert_key_inverse()

void peano_hilbert_key_inverse ( peanokey  key,
int  bits,
MyIntPosType x,
MyIntPosType y,
MyIntPosType z 
)

Definition at line 146 of file peano.cc.

◆ peano_incremental_key()

unsigned char peano_incremental_key ( unsigned char  pix,
unsigned char *  rotation 
)

Definition at line 107 of file peano.cc.