|
Intrepid
|
#include <Intrepid_MiniTensor_TensorBase.h>
Public Types | |
| typedef T | type |
Public Member Functions | |
| 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 () |
| virtual Index | get_order () const =0 |
Protected Member Functions | |
| void | set_number_components (Index const number_components) |
Protected Attributes | |
| Index | dimension_ |
| MiniTensor::StorageRCPArray< T > | components_ |
Base class for all vector and tensor types.
Definition at line 65 of file Intrepid_MiniTensor_TensorBase.h.
| typedef T Intrepid::TensorBase< T >::type |
Component type
Definition at line 72 of file Intrepid_MiniTensor_TensorBase.h.
|
inline |
Default constructor
Definition at line 172 of file Intrepid_MiniTensor_TensorBase.i.h.
|
inline |
Constructor that initializes to NaNs
| dimension | the space dimension |
| order | the order of the tensor |
Definition at line 183 of file Intrepid_MiniTensor_TensorBase.i.h.
References Intrepid::TensorBase< T >::set_number_components().
|
inline |
Create with specified value
| dimension | the space dimension |
| order | the order of the tensor |
| value | all components are set equal to this |
Definition at line 203 of file Intrepid_MiniTensor_TensorBase.i.h.
References Intrepid::TensorBase< T >::fill(), and Intrepid::TensorBase< T >::set_number_components().
|
inline |
Create from a scalar
| dimension | the space dimension |
| order | the order of the tensor |
| s | all components are set equal to this value |
Definition at line 224 of file Intrepid_MiniTensor_TensorBase.i.h.
References Intrepid::TensorBase< T >::set_number_components().
|
inline |
Create from array
| dimension | the space dimension |
| order | the order of the tensor |
| data_ptr | pointer into the array |
Definition at line 247 of file Intrepid_MiniTensor_TensorBase.i.h.
References Intrepid::TensorBase< T >::fill(), and Intrepid::TensorBase< T >::set_number_components().
|
inline |
Copy constructor
| X | the values of its components are copied to the new vector |
Definition at line 268 of file Intrepid_MiniTensor_TensorBase.i.h.
References Intrepid::TensorBase< T >::dimension_, Intrepid::TensorBase< T >::get_dimension(), Intrepid::TensorBase< T >::get_order(), and Intrepid::TensorBase< T >::set_number_components().
|
inlinevirtual |
Simple destructor
Definition at line 296 of file Intrepid_MiniTensor_TensorBase.i.h.
|
inline |
Fill with zeros
Definition at line 405 of file Intrepid_MiniTensor_TensorBase.i.h.
|
inline |
Fill components with value
| value | all components are set equal to this |
Definition at line 110 of file Intrepid_MiniTensor_TensorBase.i.h.
Referenced by Intrepid::Tensor< T >::fill(), and Intrepid::TensorBase< T >::TensorBase().
|
inline |
Fill components from array defined by pointer.
| data_ptr | pointer into array for filling components |
Definition at line 153 of file Intrepid_MiniTensor_TensorBase.i.h.
|
inline |
Definition at line 78 of file Intrepid_MiniTensor_TensorBase.i.h.
Referenced by Intrepid::Tensor< T >::fill(), Intrepid::Tensor3< T >::operator()(), Intrepid::Tensor4< T >::operator()(), Intrepid::Tensor< T >::operator()(), Intrepid::TensorBase< T >::operator+=(), Intrepid::TensorBase< T >::operator-=(), Intrepid::TensorBase< T >::operator=(), Intrepid::ParametricGrid< T >::ParametricGrid(), Intrepid::Tensor< T >::Tensor(), and Intrepid::TensorBase< T >::TensorBase().
|
inline |
Definition at line 54 of file Intrepid_MiniTensor_TensorBase.i.h.
|
pure virtual |
TensorBase order
Implemented in Intrepid::Tensor< T >, Intrepid::Vector< T >, Intrepid::Vector< Index >, Intrepid::Tensor4< T >, and Intrepid::Tensor3< T >.
Referenced by Intrepid::TensorBase< T >::operator+=(), Intrepid::TensorBase< T >::operator-=(), Intrepid::TensorBase< T >::operator=(), and Intrepid::TensorBase< T >::TensorBase().
|
inline |
Component increment
| X | components are added to current components |
Definition at line 363 of file Intrepid_MiniTensor_TensorBase.i.h.
References Intrepid::TensorBase< T >::get_dimension(), and Intrepid::TensorBase< T >::get_order().
|
inline |
Component decrement
| X | components are subtracted to current components |
Definition at line 384 of file Intrepid_MiniTensor_TensorBase.i.h.
References Intrepid::TensorBase< T >::get_dimension(), and Intrepid::TensorBase< T >::get_order().
|
inline |
Copy assignment
| X | the values of its components are copied to this vector |
Definition at line 331 of file Intrepid_MiniTensor_TensorBase.i.h.
References Intrepid::TensorBase< T >::get_dimension(), and Intrepid::TensorBase< T >::get_order().
|
inline |
Linear access to components
| i | the index |
Definition at line 307 of file Intrepid_MiniTensor_TensorBase.i.h.
|
inline |
Linear access to components
| i | the index |
Definition at line 319 of file Intrepid_MiniTensor_TensorBase.i.h.
|
inline |
| dimension | of vector |
Definition at line 89 of file Intrepid_MiniTensor_TensorBase.i.h.
Referenced by Intrepid::Tensor< T >::Tensor(), and Intrepid::Vector< T >::Vector().
|
inlineprotected |
| number_components | set storage for this number of components |
Definition at line 65 of file Intrepid_MiniTensor_TensorBase.i.h.
Referenced by Intrepid::TensorBase< T >::TensorBase().
|
protected |
TensorBase components
Definition at line 220 of file Intrepid_MiniTensor_TensorBase.h.
|
protected |
TensorBase dimension
Definition at line 214 of file Intrepid_MiniTensor_TensorBase.h.
Referenced by Intrepid::TensorBase< T >::TensorBase().
1.8.5