|
Intrepid
|
#include <Intrepid_MiniTensor_Tensor.h>
Public Member Functions | |
| Tensor () | |
| Tensor (Index const dimension) | |
| Tensor (Index const dimension, ComponentValue value) | |
| Tensor (Index const dimension, T const &s) | |
| Tensor (T const &s00, T const &s01, T const &s10, T const &s11) | |
| Tensor (T const &s00, T const &s01, T const &s02, T const &s10, T const &s11, T const &s12, T const &s20, T const &s21, T const &s22) | |
| Tensor (Index const dimension, T const *data_ptr) | |
| Tensor (Index const dimension, T const *data_ptr, ComponentOrder const component_order) | |
| Tensor (Tensor< T > const &A) | |
| Tensor (Tensor4< T > const &A) | |
| ~Tensor () | |
| T const & | operator() (Index const i, Index const j) const |
| T & | operator() (Index const i, Index const j) |
| void | fill (ComponentValue value) |
| void | fill (T const *data_ptr, ComponentOrder const component_order=CANONICAL) |
| 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 = 2U |
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_ |
Second order tensor.
Definition at line 76 of file Intrepid_MiniTensor_Definitions.h.
|
inline |
Default constructor
Definition at line 189 of file Intrepid_MiniTensor_Tensor.i.h.
|
inlineexplicit |
Constructor that initializes to NaNs
| dimension | the space dimension |
Definition at line 200 of file Intrepid_MiniTensor_Tensor.i.h.
|
inlineexplicit |
Create tensor from a specified value
| dimension | the space dimension |
| value | all components are set equal to this |
Create tensor from a specified value
Definition at line 211 of file Intrepid_MiniTensor_Tensor.i.h.
|
inline |
Create tensor from a scalar
| dimension | the space dimension |
| s | all components are set equal to this value |
Definition at line 222 of file Intrepid_MiniTensor_Tensor.i.h.
|
inline |
Create tensor specifying components
| s00 | s01 ... components in the R^2 canonical basis |
Definition at line 234 of file Intrepid_MiniTensor_Tensor.i.h.
References Intrepid::TensorBase< T >::set_dimension().
|
inline |
Create tensor specifying components
| s00 | s01 ... components in the R^3 canonical basis |
Definition at line 258 of file Intrepid_MiniTensor_Tensor.i.h.
References Intrepid::TensorBase< T >::set_dimension().
|
inline |
Create tensor from array
| dimension | the space dimension |
| data_ptr | pointer into the array |
Definition at line 288 of file Intrepid_MiniTensor_Tensor.i.h.
|
inline |
Create tensor from array
| data_ptr | pointer into the array |
| component_order | component convention (3D only) |
Definition at line 299 of file Intrepid_MiniTensor_Tensor.i.h.
References Intrepid::Tensor< T >::fill(), and Intrepid::TensorBase< T >::set_dimension().
|
inline |
Copy constructor
Definition at line 321 of file Intrepid_MiniTensor_Tensor.i.h.
|
inline |
2nd-order tensor from 4th-order tensor
Definition at line 332 of file Intrepid_MiniTensor_Tensor.i.h.
References Intrepid::TensorBase< T >::get_dimension(), and Intrepid::TensorBase< T >::set_dimension().
|
inline |
Simple destructor
Definition at line 360 of file Intrepid_MiniTensor_Tensor.i.h.
|
inline |
Fill components with value
| value | all components are set equal to this |
Definition at line 100 of file Intrepid_MiniTensor_Tensor.i.h.
References Intrepid::TensorBase< T >::fill().
Referenced by Intrepid::Tensor< T >::Tensor().
|
inline |
Fill components from array defined by pointer.
| data_ptr | pointer into array for filling components |
| component_order | component convention (3D only) |
Definition at line 112 of file Intrepid_MiniTensor_Tensor.i.h.
References Intrepid::TensorBase< T >::fill(), and Intrepid::TensorBase< T >::get_dimension().
|
inlinevirtual |
Tensor order
Implements Intrepid::TensorBase< T >.
Definition at line 186 of file Intrepid_MiniTensor_Tensor.h.
References Intrepid::Tensor< T >::order.
|
inline |
Indexing for constant tensor
| i | index |
| j | index |
Definition at line 371 of file Intrepid_MiniTensor_Tensor.i.h.
References Intrepid::TensorBase< T >::get_dimension().
|
inline |
Tensor indexing
| i | index |
| j | index |
Definition at line 391 of file Intrepid_MiniTensor_Tensor.i.h.
References Intrepid::TensorBase< T >::get_dimension().
|
static |
Order
Definition at line 73 of file Intrepid_MiniTensor_Tensor.h.
Referenced by Intrepid::Tensor< T >::get_order().
1.8.11