#include <TensorElements.h>
Public Types | |
typedef V | Element_t |
typedef const V & | ConstElementRef_t |
typedef V & | ElementRef_t |
Static Public Member Functions | |
static ConstElementRef_t | get (const V &x) |
static ElementRef_t | get (V &x) |
TensorElem should be specialized for Tensor-like classes.
The general definition is for scalars which cannot be subscripted. We also have specializations for tensors with arbitrary engines which just use operator() with both integers. This is the fallback if a given engine type doesn't specify anything else.
typedef V TensorElem< V, I, J >::Element_t |
typedef const V& TensorElem< V, I, J >::ConstElementRef_t |
typedef V& TensorElem< V, I, J >::ElementRef_t |
static ConstElementRef_t TensorElem< V, I, J >::get | ( | const V & | x | ) | [inline, static] |
static ElementRef_t TensorElem< V, I, J >::get | ( | V & | x | ) | [inline, static] |