|
OpenWalnut
1.2.5
|
Implements the operator () for an order of 2 as well as casts to WMatrix. More...
#include <WTensorBase.h>
Inheritance diagram for WTensorFunc< TensorBase_T, 2, dim, Data_T >:Public Member Functions | |
| WTensorFunc () | |
| Default constructor. | |
| WTensorFunc (const WValue< Data_T > &data) | |
| Initializes the tensor with the given data. | |
| Data_T & | operator() (std::size_t i0, std::size_t i1) |
| Access operator. | |
| Data_T const & | operator() (std::size_t i0, std::size_t i1) const |
| Access operator. | |
| operator WMatrix< Data_T > () const | |
| Cast this 2nd-order tensor into a WMatrix. | |
Implements the operator () for an order of 2 as well as casts to WMatrix.
| TensorBase_T | Either WTensorBase<> or WTensorBaseSym<> |
| dim | The dimension of the tensor, i.e. the number of components in each direction. |
| Data_T | The datatype of the components, double by default. |
Definition at line 1361 of file WTensorBase.h.
| WTensorFunc< TensorBase_T, 2, dim, Data_T >::WTensorFunc | ( | ) |
Default constructor.
Definition at line 1403 of file WTensorBase.h.
|
explicit |
Initializes the tensor with the given data.
| data | Components in same ordering as the components of the TensorBase class. |
Definition at line 1409 of file WTensorBase.h.
| WTensorFunc< TensorBase_T, 2, dim, Data_T >::operator WMatrix< Data_T > | ( | ) | const |
Cast this 2nd-order tensor into a WMatrix.
Definition at line 1428 of file WTensorBase.h.
| Data_T & WTensorFunc< TensorBase_T, 2, dim, Data_T >::operator() | ( | std::size_t | i0, |
| std::size_t | i1 | ||
| ) |
Access operator.
| i0 | An index. |
| i1 | An index. |
Definition at line 1415 of file WTensorBase.h.
| Data_T const & WTensorFunc< TensorBase_T, 2, dim, Data_T >::operator() | ( | std::size_t | i0, |
| std::size_t | i1 | ||
| ) | const |
Access operator.
| i0 | An index. |
| i1 | An index. |
Definition at line 1421 of file WTensorBase.h.
1.8.1