Intrepid
Public Member Functions | Static Public Attributes | List of all members
Intrepid::Tensor3< T > Class Template Reference

#include <Intrepid_MiniTensor_Tensor3.h>

Inheritance diagram for Intrepid::Tensor3< T >:
Intrepid::TensorBase< T >

Public Member Functions

 Tensor3 ()
 
 Tensor3 (Index const dimension)
 
 Tensor3 (Index const dimension, ComponentValue value)
 
 Tensor3 (Index const dimension, T const &s)
 
 Tensor3 (Index const dimension, T const *data_ptr)
 
 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_order () const
 
- Public Member Functions inherited from Intrepid::TensorBase< T >
 TensorBase ()
 
 TensorBase (Index const dimension, Index const order)
 
 TensorBase (Index const dimension, Index const order, ComponentValue value)
 
 TensorBase (Index const dimension, Index const order, T const &s)
 
 TensorBase (Index const dimension, Index const order, T const *data_ptr)
 
 TensorBase (TensorBase< T > const &X)
 
virtual ~TensorBase ()
 
T const & operator[] (Index const i) const
 
T & operator[] (Index const i)
 
Index get_dimension () const
 
void set_dimension (Index const dimension)
 
Index get_number_components () const
 
void fill (ComponentValue value)
 
void fill (T const *data_ptr)
 
TensorBase< T > & operator= (TensorBase< T > const &X)
 
TensorBase< T > & operator+= (TensorBase< T > const &X)
 
TensorBase< T > & operator-= (TensorBase< T > const &X)
 
void clear ()
 

Static Public Attributes

static Index const order = 3U
 

Additional Inherited Members

- Public Types inherited from Intrepid::TensorBase< T >
typedef T type
 
- Protected Member Functions inherited from Intrepid::TensorBase< T >
void set_number_components (Index const number_components)
 
- Protected Attributes inherited from Intrepid::TensorBase< T >
Index dimension_
 
MiniTensor::StorageRCPArray< T > components_
 

Detailed Description

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

Third-order tensor.

Definition at line 77 of file Intrepid_MiniTensor_Definitions.h.

Constructor & Destructor Documentation

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

Default constructor

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

template<typename T >
Intrepid::Tensor3< T >::Tensor3 ( Index const  dimension)
inlineexplicit

3rd-order tensor constructor with NaNs

Parameters
dimensionthe space dimension

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

template<typename T >
Intrepid::Tensor3< T >::Tensor3 ( Index const  dimension,
ComponentValue  value 
)
inlineexplicit

Create 3rd-order tensor from a specified value

Parameters
dimensionthe space dimension
valueall components are set equal to this

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

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

3rd-order tensor constructor with a scalar

Parameters
dimensionthe space dimension
sall components set to this scalar

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

template<typename T >
Intrepid::Tensor3< T >::Tensor3 ( Index const  dimension,
T const *  data_ptr 
)
inline

Create 3rd-order tensor from array

Parameters
dimensionthe space dimension
data_ptrpointer into the array

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

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

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

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

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

3rd-order tensor simple destructor

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

Member Function Documentation

template<typename T>
Index Intrepid::Tensor3< T >::get_order ( ) const
inlinevirtual

Tensor order

Implements Intrepid::TensorBase< T >.

Definition at line 130 of file Intrepid_MiniTensor_Tensor3.h.

References Intrepid::Tensor3< T >::order.

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 247 of file Intrepid_MiniTensor_Tensor3.i.h.

References Intrepid::TensorBase< T >::get_dimension().

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 268 of file Intrepid_MiniTensor_Tensor3.i.h.

References Intrepid::TensorBase< T >::get_dimension().

Member Data Documentation

template<typename T>
Index const Intrepid::Tensor3< T >::order = 3U
static

Order

Definition at line 61 of file Intrepid_MiniTensor_Tensor3.h.

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


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