Class TempLat::TranspositionMap
template <size_t NDim>
ClassList > TempLat > TranspositionMap
A class which maps between two orderings. More...
#include <transpositionmap.h>
Public Functions
| Type | Name |
|---|---|
| TranspositionMap () Default constructor: untransposed, both maps are a linear range. |
|
| DEVICE_INLINE_FUNCTION device::Idx | getForward (device::Idx index) const |
| DEVICE_INLINE_FUNCTION device::Idx | getInverse (device::Idx index) const |
| DEVICE_INLINE_FUNCTION bool | isTransposed () const |
| DEVICE_INLINE_FUNCTION bool | isUntransposed () const |
| void | setMap (const device::IdxArray< NDim > & input) Provide your forward mapping, which will be the new output of getForward. |
Public Static Functions
| Type | Name |
|---|---|
| constexpr size_t | size () |
Detailed Description
Unit test: ctest -R test-transpositionmap
Public Functions Documentation
function TranspositionMap
Default constructor: untransposed, both maps are a linear range.
function getForward
inline DEVICE_INLINE_FUNCTION device::Idx TempLat::TranspositionMap::getForward (
device::Idx index
) const
function getInverse
inline DEVICE_INLINE_FUNCTION device::Idx TempLat::TranspositionMap::getInverse (
device::Idx index
) const
function isTransposed
function isUntransposed
function setMap
Provide your forward mapping, which will be the new output of getForward.
Public Static Functions Documentation
function size
Friends Documentation
friend operator<<
inline std::ostream & TempLat::TranspositionMap::operator<< (
std::ostream & ostream,
const TranspositionMap & a
)
friend operator==
inline bool TempLat::TranspositionMap::operator== (
const TranspositionMap & a,
const TranspositionMap & b
)
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/memory/memorylayouts/transpositionmap.h