Tensor< T, C, RestD > Class Template Reference

#include <RectMDArray.H>

List of all members.


Detailed Description

template<class T, unsigned int C, unsigned char... RestD>
class Tensor< T, C, RestD >

Tensor object used to interface with data pointwise in a RectMDArray.

Tensor is used mostly for implementing pointwise operators on RectMDArrays. See the documentation for forall for more information.

Public Member Functions

 Tensor (std::function< T &(unsigned int, decltype(RestD)...)> &a_input)
 Constructor. A Tensor is built from a function a_input with return type T.
void operator= (std::function< T &(unsigned int, decltype(RestD)...)> &a_input)
 Assignment operator. This is necessary for inheritance from std::function to work properly.


Constructor & Destructor Documentation

template<class T, unsigned int C, unsigned char... RestD>
Tensor< T, C, RestD >::Tensor ( std::function< T &(unsigned int, decltype(RestD)...)> &  a_input  )  [inline]

Constructor. A Tensor is built from a function a_input with return type T.


Member Function Documentation

template<class T, unsigned int C, unsigned char... RestD>
void Tensor< T, C, RestD >::operator= ( std::function< T &(unsigned int, decltype(RestD)...)> &  a_input  )  [inline]

Assignment operator. This is necessary for inheritance from std::function to work properly.


The documentation for this class was generated from the following file:

Generated on Fri Mar 11 12:53:44 2016 for AMRStencil by  doxygen 1.5.5