|
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. More... | |
| template<typename Index_T > | |
| std::size_t | operator[] (Index_T pos[]) const |
| Get the mapped position. More... | |
Private Attributes | |
| WTensorBase< order, dim, std::size_t > | m_positions |
| Maps the indices to a vector element position. More... | |
A class that maps symmetric tensor indices to vector positions.
Definition at line 812 of file WTensorBase.h.
| anonymous enum |
Declare a compile-time constant as enum and not as static constant.
| Enumerator | |
|---|---|
| dataSize |
The number of data elements. |
Definition at line 833 of file WTensorBase.h.
| WTensorBaseSym< order, dim, Data_T >::PositionIndexer::PositionIndexer | ( | ) |
Standard constructor.
The mapping is calculated here.
Definition at line 861 of file WTensorBase.h.
References WTensorBaseSym< order, dim, Data_T >::PositionIndexer::dataSize, and WTensorBaseSym< order, dim, Data_T >::PositionIndexer::m_positions.
|
inline |
Get the mapped position.
| pos | An array of indices. |
Definition at line 908 of file WTensorBase.h.
|
private |
Maps the indices to a vector element position.
Definition at line 845 of file WTensorBase.h.
Referenced by WTensorBaseSym< order, dim, Data_T >::PositionIndexer::PositionIndexer().
1.8.9.1