TensorElem< V, I, J > Struct Template Reference

#include <TensorElements.h>

List of all members.


Detailed Description

template<class V, int I, int J>
struct TensorElem< V, I, J >

The general templates for the class TensorElem.

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.

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)


Member Typedef Documentation

template<class V, int I, int J>
typedef V TensorElem< V, I, J >::Element_t

template<class V, int I, int J>
typedef const V& TensorElem< V, I, J >::ConstElementRef_t

template<class V, int I, int J>
typedef V& TensorElem< V, I, J >::ElementRef_t


Member Function Documentation

template<class V, int I, int J>
static ConstElementRef_t TensorElem< V, I, J >::get ( const V &  x  )  [inline, static]

template<class V, int I, int J>
static ElementRef_t TensorElem< V, I, J >::get ( V &  x  )  [inline, static]


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

Generated on Sun May 17 21:44:10 2009 for FreePOOMA by  doxygen 1.5.5