Intrepid
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
Intrepid::Tensor3< T, N > Class Template Reference

#include <Intrepid_MiniTensor_Tensor3.h>

Inheritance diagram for Intrepid::Tensor3< T, N >:
Intrepid::TensorBase< T, tensor3_store< T, N >::type >

List of all members.

Public Types

typedef tensor3_store< T, N >::type Store

Public Member Functions

 Tensor3 ()
 Tensor3 (Index const dimension)
 Tensor3 (ComponentValue const value)
 Tensor3 (Index const dimension, ComponentValue const value)
 Tensor3 (T const *data_ptr)
 Tensor3 (Index const dimension, T const *data_ptr)
 Tensor3 (Tensor3< T, N > const &A)
 ~Tensor3 ()
T const & operator() (Index const i, Index const j, Index const k) const
T & operator() (Index const i, Index const j, Index const k)
Index get_dimension () const
void set_dimension (Index const dimension)

Static Public Member Functions

static Index get_order ()

Static Public Attributes

static Index const ORDER = 3
static bool const IS_DYNAMIC = N == DYNAMIC

Detailed Description

template<typename T, Index N = DYNAMIC>
class Intrepid::Tensor3< T, N >

Third-order tensor.

Definition at line 59 of file Intrepid_MiniTensor_Tensor3.h.


Member Typedef Documentation

template<typename T, Index N = DYNAMIC>
typedef tensor3_store<T, N>::type Intrepid::Tensor3< T, N >::Store

Storage type

Definition at line 81 of file Intrepid_MiniTensor_Tensor3.h.


Constructor & Destructor Documentation

template<typename T , Index N>
Intrepid::Tensor3< T, N >::Tensor3 ( ) [inline, explicit]

3rd-order tensor constructor with NaNs

Parameters:
dimensionthe space dimension

Definition at line 52 of file Intrepid_MiniTensor_Tensor3.i.h.

template<typename T , Index N>
Intrepid::Tensor3< T, N >::Tensor3 ( ComponentValue const  value) [inline, explicit]

Create 3rd-order tensor from a specified value

Parameters:
dimensionthe space dimension
valueall components are set equal to this

Definition at line 71 of file Intrepid_MiniTensor_Tensor3.i.h.

template<typename T , Index N>
Intrepid::Tensor3< T, N >::Tensor3 ( T const *  data_ptr) [inline, explicit]

Create 3rd-order tensor from array

Parameters:
dimensionthe space dimension
data_ptrpointer into the array

Definition at line 90 of file Intrepid_MiniTensor_Tensor3.i.h.

template<typename T , Index N>
Intrepid::Tensor3< T, N >::Tensor3 ( Tensor3< T, N > const &  A) [inline]

Copy constructor 3rd-order tensor constructor from 3rd-order tensor

Definition at line 109 of file Intrepid_MiniTensor_Tensor3.i.h.

template<typename T , Index N>
Intrepid::Tensor3< T, N >::~Tensor3 ( ) [inline]

3rd-order tensor simple destructor

Definition at line 120 of file Intrepid_MiniTensor_Tensor3.i.h.


Member Function Documentation

template<typename T , Index N>
Index Intrepid::Tensor3< T, N >::get_dimension ( ) const [inline]
template<typename T, Index N = DYNAMIC>
static Index Intrepid::Tensor3< T, N >::get_order ( ) [inline, static]

Tensor order

Definition at line 88 of file Intrepid_MiniTensor_Tensor3.h.

References Intrepid::Tensor3< T, N >::ORDER.

template<typename T , Index N>
T const & Intrepid::Tensor3< T, N >::operator() ( Index const  i,
Index const  j,
Index const  k 
) const [inline]

Indexing for constant 3rd-order tensor

Parameters:
iindex
jindex
kindex

Definition at line 294 of file Intrepid_MiniTensor_Tensor3.i.h.

References Intrepid::Tensor3< T, N >::get_dimension().

template<typename T , Index N>
T & Intrepid::Tensor3< T, N >::operator() ( Index const  i,
Index const  j,
Index const  k 
) [inline]

3rd-order tensor indexing

Parameters:
iindex
jindex
kindex

Definition at line 311 of file Intrepid_MiniTensor_Tensor3.i.h.

References Intrepid::Tensor3< T, N >::get_dimension().

template<typename T , Index N>
void Intrepid::Tensor3< T, N >::set_dimension ( Index const  dimension) [inline]
Parameters:
dimensionof vector

Definition at line 142 of file Intrepid_MiniTensor_Tensor3.i.h.

References Intrepid::TensorBase< T, ST >::set_dimension().


Member Data Documentation

template<typename T, Index N = DYNAMIC>
bool const Intrepid::Tensor3< T, N >::IS_DYNAMIC = N == DYNAMIC [static]

Static or dynamic

Definition at line 75 of file Intrepid_MiniTensor_Tensor3.h.

template<typename T, Index N = DYNAMIC>
Index const Intrepid::Tensor3< T, N >::ORDER = 3 [static]

Order

Definition at line 68 of file Intrepid_MiniTensor_Tensor3.h.

Referenced by Intrepid::Tensor3< T, N >::get_order().


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