OpenWalnut
1.5.0dev
|
Test class for the WTensorSym template. More...
#include <WTensorSym_test.h>
Public Member Functions | |
void | testAccessOperator1 () |
Test access operator (). More... | |
void | testAccessOperator2 () |
Test access operator []. More... | |
void | testStandardConstructor () |
Test the standard constructor. More... | |
void | testCopyConstructor () |
Test copy constructor. More... | |
void | testCopyOperator () |
Test copy operator. More... | |
void | testCastToVariousTypes () |
Test casts to Data_T, WValue or WMatrix, depending on the order of the Tensor. More... | |
void | testEvaluateSphericalFunction () |
The optimizations for symmetric tensors should not corrupt the result, so we compare the optimized evaluation function to a simple implementaion. More... | |
Private Member Functions | |
double | calcTens (WTensorSym< 4, 3, double > const &t, WVector3d const &v) |
A helper function that implements the simple approach to tensor evaluation. More... | |
Test class for the WTensorSym template.
Definition at line 38 of file WTensorSym_test.h.
|
inlineprivate |
A helper function that implements the simple approach to tensor evaluation.
t | The tensor. |
v | The gradient. |
Definition at line 248 of file WTensorSym_test.h.
Referenced by testEvaluateSphericalFunction().
|
inline |
Test access operator ().
Definition at line 44 of file WTensorSym_test.h.
|
inline |
Test access operator [].
Definition at line 77 of file WTensorSym_test.h.
|
inline |
Test casts to Data_T, WValue or WMatrix, depending on the order of the Tensor.
Definition at line 172 of file WTensorSym_test.h.
|
inline |
Test copy constructor.
Definition at line 140 of file WTensorSym_test.h.
|
inline |
Test copy operator.
Definition at line 154 of file WTensorSym_test.h.
|
inline |
The optimizations for symmetric tensors should not corrupt the result, so we compare the optimized evaluation function to a simple implementaion.
Definition at line 204 of file WTensorSym_test.h.
References calcTens(), and WTensorSym< order, dim, Data_T >::evaluateSphericalFunction().
|
inline |
Test the standard constructor.
Definition at line 100 of file WTensorSym_test.h.