Brick Library 0.1
Performanceportable stencil datalayout & codegen

ndimensional ZMort ordering More...
#include <zmort.h>
Public Member Functions  
ZMORT ()  
Default to 0d.  
ZMORT (unsigned long id, unsigned long dim)  
Initialize using zmort id and the number of dimensions.  
ZMORT  operator[] (unsigned long p) 
Continuously construct a ZMort index.  
unsigned long  operator() (unsigned long d) 
Get positions of a ZMort index on the dth dimension.  
ZMORT  set (unsigned long d, unsigned long p) 
Set positions of a ZMort index on the dth dimension.  
operator unsigned long () const  
Implicit conversion to extract the ZMort index.  
Public Attributes  
unsigned long  id 
ZMort index of this struct.  
unsigned long  dim 
Number of dimensions.  
ndimensional ZMort ordering
Preliminary nd ZMort implementation whose returning index is not compact. Only for perfect 2exponentials will return compact & contiguous index.
This can be viewed as a single ZMort index or as an array of indices that represent the original ndimensional position. It can be constructed incrementally from 0d ZMort.

inline 
Default to 0d.

inline 
Initialize using zmort id and the number of dimensions.

inline 
Implicit conversion to extract the ZMort index.

inline 
Get positions of a ZMort index on the dth dimension.
d  The dimension to get index, 0 is the fastest varying dimension 
For example, see ZMORT::operator[](unsigned long).

inline 

inline 
Set positions of a ZMort index on the dth dimension.
d  The dimension, 0 is the fastest varying dimension 
p  The position 
unsigned long ZMORT::dim 
Number of dimensions.
unsigned long ZMORT::id 
ZMort index of this struct.