![]() |
Low-Level Abstraction of Memory Access
|
Functor that maps an ArrayIndex into linear numbers using the Z-order space filling curve (Morton codes). More...
#include <Common.hpp>
Public Member Functions | |
template<typename ArrayExtents > | |
constexpr auto | size (const ArrayExtents &extents) const -> typename ArrayExtents::value_type |
template<typename ArrayExtents > | |
constexpr auto | operator() (const typename ArrayExtents::Index &ai, [[maybe_unused]] const ArrayExtents &extents) const -> typename ArrayExtents::value_type |
Functor that maps an ArrayIndex into linear numbers using the Z-order space filling curve (Morton codes).
Definition at line 119 of file Common.hpp.
|
inlineconstexpr |
ai | Coordinate in the array dimensions. |
extents | Total size of the array dimensions. |
Definition at line 141 of file Common.hpp.
|
inlineconstexpr |
Definition at line 122 of file Common.hpp.