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

#include <Intrepid_MiniTensor_Tensor4.h>

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

Public Member Functions

 Tensor4 ()
 
 Tensor4 (Index const dimension)
 
 Tensor4 (Index const dimension, ComponentValue value)
 
 Tensor4 (Index const dimension, T const &s)
 
 Tensor4 (Index const dimension, T const *data_ptr)
 
 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_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 = 4U
 

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::Tensor4< T >

Fourth-order tensor.

Definition at line 78 of file Intrepid_MiniTensor_Definitions.h.

Constructor & Destructor Documentation

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

Default constructor

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

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

4th-order tensor constructor with NaNs

Parameters
dimensionthe space dimension

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

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

Create 4th-order tensor from a specified value

Parameters
dimensionthe space dimension
valueall components are set equal to this

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

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

4th-order tensor constructor with a scalar

Parameters
dimensionthe space dimension
sall components set to this scalar

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

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

Create 4th-order tensor from array

Parameters
dimensionthe space dimension
data_ptrpointer into the array

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

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

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

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

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

4th-order tensor simple destructor

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

Member Function Documentation

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

Tensor order

Implements Intrepid::TensorBase< T >.

Definition at line 140 of file Intrepid_MiniTensor_Tensor4.h.

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

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 252 of file Intrepid_MiniTensor_Tensor4.i.h.

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

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 279 of file Intrepid_MiniTensor_Tensor4.i.h.

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

Member Data Documentation

template<typename T>
Index const Intrepid::Tensor4< T >::order = 4U
static

Order

Definition at line 61 of file Intrepid_MiniTensor_Tensor4.h.

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


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