Template Class TensorDim

Inheritance Relationships

Base Type

Class Documentation

template<typename Type, DimType DIM>
class TensorDim : public combigrid::TensorIndexer<DIM>

Public Functions

TensorDim() = default
inline explicit TensorDim(Type *data, IndexArray<DIM> extents)
TensorDim(TensorDim const&) = delete
TensorDim(TensorDim&&) = default
TensorDim &operator=(TensorDim const&) = delete
TensorDim &operator=(TensorDim&&) = default
inline Type *getData()
inline const Type *getData() const
inline void setData(Type *newData)
inline Type &operator[](IndexType a)
inline const Type &operator[](IndexType a) const
inline Type &operator()(const IndexArray<DIM> &index)
inline Type const &operator()(const IndexArray<DIM> &index) const
template<std::size_t NumDims>
inline boost::multi_array_ref<Type, NumDims> getAsMultiArrayRef()
template<std::size_t NumDims>
inline boost::const_multi_array_ref<Type, NumDims> getAsConstMultiArrayRef() const