OpenWalnut
1.4.0
|
A class that maps symmetric tensor indices to vector positions. More...
Public Types | |
enum | { dataSize = WBinom< order + dim - 1, order >::value } |
Declare a compile-time constant as enum and not as static constant. More... | |
Public Member Functions | |
PositionIndexer () | |
Standard constructor. | |
template<typename Index_T > | |
std::size_t | operator[] (Index_T pos[]) const |
Get the mapped position. | |
Private Attributes | |
WTensorBase< order, dim, std::size_t > | m_positions |
Maps the indices to a vector element position. |
A class that maps symmetric tensor indices to vector positions.
Definition at line 808 of file WTensorBase.h.
anonymous enum |
Declare a compile-time constant as enum and not as static constant.
Definition at line 829 of file WTensorBase.h.
WTensorBaseSym< order, dim, Data_T >::PositionIndexer::PositionIndexer | ( | ) |
Standard constructor.
The mapping is calculated here.
Definition at line 857 of file WTensorBase.h.
References WTensorBaseSym< order, dim, Data_T >::PositionIndexer::dataSize, and WTensorBaseSym< order, dim, Data_T >::PositionIndexer::m_positions.
std::size_t WTensorBaseSym< order, dim, Data_T >::PositionIndexer::operator[] | ( | Index_T | pos[] | ) | const [inline] |
Get the mapped position.
pos | An array of indices. |
Definition at line 904 of file WTensorBase.h.
WTensorBase< order, dim, std::size_t > WTensorBaseSym< order, dim, Data_T >::PositionIndexer::m_positions [private] |
Maps the indices to a vector element position.
Definition at line 841 of file WTensorBase.h.
Referenced by WTensorBaseSym< order, dim, Data_T >::PositionIndexer::PositionIndexer().