Template Class TensorIndexer

Inheritance Relationships

Derived Types

Class Documentation

template<DimType DIM>
class TensorIndexer

Subclassed by combigrid::TensorDim< FG_ELEMENT, DIM >, combigrid::TensorDim< Type, DIM >

Public Functions

TensorIndexer() = default
inline explicit TensorIndexer(IndexArray<DIM> extents)
TensorIndexer(TensorIndexer const&) = delete
TensorIndexer(TensorIndexer&&) = default
TensorIndexer &operator=(TensorIndexer const&) = delete
TensorIndexer &operator=(TensorIndexer&&) = default
template<DimType Dimension>
inline IndexType dim() const
inline size_t size() const
inline IndexType sequentialIndex(const IndexArray<DIM> &indexArray) const
inline IndexType sequentialIndex(const IndexVector &indexVector) const
inline IndexArray<DIM> getArrayIndex(IndexType index) const
inline const IndexArray<DIM> &getExtents() const
inline const IndexArray<DIM> &getExtentsArray() const
inline const IndexArray<DIM> &getOffsets() const
inline const IndexArray<DIM> &getOffsetsArray() const
inline IndexVector getExtentsVector() const
inline IndexVector getOffsetsVector() const

Protected Attributes

IndexArray<DIM> extents_ = {}
IndexArray<DIM> localOffsets_ = {}