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

#include <Intrepid_MiniTensor_Tensor4.h>

Inheritance diagram for Intrepid::Tensor4< T, N >:
Intrepid::TensorBase< T, tensor4_store< T, N >::type >

List of all members.

Public Types

typedef tensor4_store< T, N >::type Store

Public Member Functions

 Tensor4 ()
 Tensor4 (Index const dimension)
 Tensor4 (ComponentValue const value)
 Tensor4 (Index const dimension, ComponentValue const value)
 Tensor4 (T const *data_ptr)
 Tensor4 (Index const dimension, T const *data_ptr)
 Tensor4 (Tensor4< T, N > const &A)
 Tensor4 (Tensor< T, dimension_square< N >::value > const &A)
 ~Tensor4 ()
T const & operator() (Index const i, Index const j, Index const k, Index const l) const
T & operator() (Index const i, Index const j, Index const k, Index const l)
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 = 4
static bool const IS_DYNAMIC = N == DYNAMIC

Detailed Description

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

Fourth-order tensor.

Definition at line 59 of file Intrepid_MiniTensor_Tensor4.h.


Member Typedef Documentation

template<typename T, Index N = DYNAMIC>
typedef tensor4_store<T, N>::type Intrepid::Tensor4< T, N >::Store

Storage type

Definition at line 81 of file Intrepid_MiniTensor_Tensor4.h.


Constructor & Destructor Documentation

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

4th-order tensor constructor with NaNs

Parameters:
dimensionthe space dimension

Definition at line 53 of file Intrepid_MiniTensor_Tensor4.i.h.

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

Create 4th-order tensor from a specified value

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

Definition at line 72 of file Intrepid_MiniTensor_Tensor4.i.h.

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

Create 4th-order tensor from array

Parameters:
dimensionthe space dimension
data_ptrpointer into the array

Definition at line 91 of file Intrepid_MiniTensor_Tensor4.i.h.

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

Copy constructor 4th-order tensor constructor with 4th-order tensor

Definition at line 110 of file Intrepid_MiniTensor_Tensor4.i.h.

template<typename T , Index N>
Intrepid::Tensor4< T, N >::Tensor4 ( Tensor< T, dimension_square< N >::value > const &  A) [inline]

4th-order tensor from 2nd-order tensor

Definition at line 164 of file Intrepid_MiniTensor_Tensor4.i.h.

References Intrepid::Tensor4< T, N >::set_dimension().

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

4th-order tensor simple destructor

Definition at line 191 of file Intrepid_MiniTensor_Tensor4.i.h.


Member Function Documentation

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

Tensor order

Definition at line 88 of file Intrepid_MiniTensor_Tensor4.h.

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

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

Indexing for constant 4th-order tensor

Parameters:
iindex
jindex
kindex
lindex

Definition at line 369 of file Intrepid_MiniTensor_Tensor4.i.h.

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

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

4th-order tensor indexing

Parameters:
iindex
jindex
kindex
lindex

Definition at line 391 of file Intrepid_MiniTensor_Tensor4.i.h.

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

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

Definition at line 213 of file Intrepid_MiniTensor_Tensor4.i.h.

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

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


Member Data Documentation

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

Static or dynamic

Definition at line 75 of file Intrepid_MiniTensor_Tensor4.h.

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

Order

Definition at line 68 of file Intrepid_MiniTensor_Tensor4.h.

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


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