|
OpenWalnut 1.3.1
|
Test class for the WTensorSym template. More...
#include <WTensorSym_test.h>
Inheritance diagram for WTensorSymTest:Public Member Functions | |
| void | testAccessOperator1 () |
| Test access operator (). | |
| void | testAccessOperator2 () |
| Test access operator []. | |
| void | testStandardConstructor () |
| Test the standard constructor. | |
| void | testCopyConstructor () |
| Test copy constructor. | |
| void | testCopyOperator () |
| Test copy operator. | |
| void | testCastToVariousTypes () |
| Test casts to Data_T, WValue or WMatrix, depending on the order of the Tensor. | |
| void | testEvaluateSphericalFunction () |
| The optimizations for symmetric tensors should not corrupt the result, so we compare the optimized evaluation function to a simple implementaion. | |
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. | |
Test class for the WTensorSym template.
Definition at line 38 of file WTensorSym_test.h.
| double WTensorSymTest::calcTens | ( | WTensorSym< 4, 3, double > const & | t, |
| WVector3d const & | v | ||
| ) | [inline, private] |
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().
| void WTensorSymTest::testAccessOperator1 | ( | ) | [inline] |
Test access operator ().
Definition at line 44 of file WTensorSym_test.h.
| void WTensorSymTest::testAccessOperator2 | ( | ) | [inline] |
Test access operator [].
Definition at line 77 of file WTensorSym_test.h.
| void WTensorSymTest::testCastToVariousTypes | ( | ) | [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.
| void WTensorSymTest::testCopyConstructor | ( | ) | [inline] |
Test copy constructor.
Definition at line 140 of file WTensorSym_test.h.
| void WTensorSymTest::testCopyOperator | ( | ) | [inline] |
Test copy operator.
Definition at line 154 of file WTensorSym_test.h.
| void WTensorSymTest::testEvaluateSphericalFunction | ( | ) | [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().
| void WTensorSymTest::testStandardConstructor | ( | ) | [inline] |
Test the standard constructor.
Definition at line 100 of file WTensorSym_test.h.
1.7.4