Intrepid
Public Member Functions | Private Attributes
Intrepid::Tensor4< T > Class Template Reference

#include <Intrepid_MiniTensor_Tensor4.h>

List of all members.

Public Member Functions

 Tensor4 ()
 Tensor4 (Index const N)
 Tensor4 (Index const N, T const &s)
 Tensor4 (Tensor4< T > 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 N)
Tensor4< T > & operator= (Tensor4< T > const &A)
Tensor4< T > & operator+= (Tensor4< T > const &A)
Tensor4< T > & operator-= (Tensor4< T > const &A)
void clear ()

Private Attributes

Index dimension
T * e

Detailed Description

template<typename T>
class Intrepid::Tensor4< T >

Fourth order tensor in R^N.

Definition at line 53 of file Intrepid_MiniTensor_Tensor4.h.


Constructor & Destructor Documentation

template<typename T >
Intrepid::Tensor4< T >::Tensor4 ( )

Default constructor

Definition at line 75 of file Intrepid_MiniTensor_Tensor4.t.h.

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

4th-order tensor constructor with NaNs

Definition at line 86 of file Intrepid_MiniTensor_Tensor4.t.h.

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

template<typename T >
Intrepid::Tensor4< T >::Tensor4 ( Index const  N,
T const &  s 
)

4th-order tensor constructor with a scalar

Parameters:
sall components set to this scalar

Definition at line 107 of file Intrepid_MiniTensor_Tensor4.t.h.

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

template<typename T >
Intrepid::Tensor4< T >::Tensor4 ( Tensor4< T > const &  A)

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

Parameters:
Afrom which components are copied

Definition at line 129 of file Intrepid_MiniTensor_Tensor4.t.h.

References Intrepid::Tensor4< T >::e, Intrepid::Tensor4< T >::get_dimension(), and Intrepid::Tensor4< T >::set_dimension().

template<typename T >
Intrepid::Tensor4< T >::~Tensor4 ( )

4th-order tensor simple destructor

Definition at line 152 of file Intrepid_MiniTensor_Tensor4.t.h.


Member Function Documentation

template<typename T >
void Intrepid::Tensor4< T >::clear ( )

Fill 4th-order tensor with zeros

Definition at line 236 of file Intrepid_MiniTensor_Tensor4.t.h.

template<typename T >
Index Intrepid::Tensor4< T >::get_dimension ( ) const [inline]
template<typename T >
T & Intrepid::Tensor4< T >::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 118 of file Intrepid_MiniTensor_Tensor4.i.h.

template<typename T >
T const & Intrepid::Tensor4< T >::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 94 of file Intrepid_MiniTensor_Tensor4.i.h.

template<typename T >
Tensor4< T > & Intrepid::Tensor4< T >::operator+= ( Tensor4< T > const &  A)

4th-order tensor increment

Parameters:
Aadded to this tensor

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

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

template<typename T >
Tensor4< T > & Intrepid::Tensor4< T >::operator-= ( Tensor4< T > const &  A)

4th-order tensor decrement

Parameters:
Asubstracted from this tensor

Definition at line 214 of file Intrepid_MiniTensor_Tensor4.t.h.

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

template<typename T >
Tensor4< T > & Intrepid::Tensor4< T >::operator= ( Tensor4< T > const &  A)

4th-order tensor copy assignment

Definition at line 165 of file Intrepid_MiniTensor_Tensor4.t.h.

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

template<typename T >
void Intrepid::Tensor4< T >::set_dimension ( Index const  N)
Parameters:
Ndimension of 4th-order tensor

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

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


Member Data Documentation

template<typename T>
Index Intrepid::Tensor4< T >::dimension [private]

Tensor dimension

Definition at line 158 of file Intrepid_MiniTensor_Tensor4.h.

template<typename T>
T* Intrepid::Tensor4< T >::e [private]

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