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

#include <Intrepid_MiniTensor_Tensor3.h>

List of all members.

Public Member Functions

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

Private Attributes

Index dimension
T * e

Detailed Description

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

Third order tensor in R^N.

Definition at line 53 of file Intrepid_MiniTensor_Tensor3.h.


Constructor & Destructor Documentation

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

Default constructor

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

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

3rd-order tensor constructor with NaNs

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

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

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

3rd-order tensor constructor with a scalar

Parameters:
sall components set to this scalar

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

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

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

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

Parameters:
Afrom which components are copied

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

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

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

3rd-order tensor simple destructor

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


Member Function Documentation

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

Fill 3rd-order tensor with zeros

Definition at line 235 of file Intrepid_MiniTensor_Tensor3.t.h.

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

3rd-order tensor indexing

Parameters:
iindex
jindex
kindex

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

template<typename T >
T const & Intrepid::Tensor3< T >::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 68 of file Intrepid_MiniTensor_Tensor3.i.h.

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

3rd-order tensor increment

Parameters:
Aadded to this tensor

Definition at line 190 of file Intrepid_MiniTensor_Tensor3.t.h.

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

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

3rd-order tensor decrement

Parameters:
Asubstracted from this tensor

Definition at line 213 of file Intrepid_MiniTensor_Tensor3.t.h.

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

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

3rd-order tensor copy assignment

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

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

template<typename T >
void Intrepid::Tensor3< T >::set_dimension ( Index const  N)
Parameters:
Ndimension of 3rd-order tensor

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

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


Member Data Documentation

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

Tensor dimension

Definition at line 148 of file Intrepid_MiniTensor_Tensor3.h.

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

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