AXOM
Axom provides a robust, flexible software infrastructure for the development of multiphysics applications and computational tools.

Helper class for MortonIndexing of a point's coordinate. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/docsessmancontainer_strict/src/axom/spin/MortonIndex.hpp>
Helper class for MortonIndexing of a point's coordinate.
The Morton index of a point interleaves the bits of its coordinates (with the least significant bit coming from the xcoordinate E.g. if we have a point in 2D (6,3) == (0b0110, 0b0011) in its binary representation.If we label the individual set bits we get (0b0ab0, 0b00yz). When we expand the bits by inserting a 0 (denoted with *), we get (0b*0*a*b*0,0b*0*0*y*z). Finally, by shifting the ycoordinate and interleaving, we get the Morton index of this point: 0b000yazb0 == 0b00011110 == 30