OpenWalnut
1.2.5
|
Test class for all tensor operators. More...
#include <WTensorFunctions_test.h>
Public Member Functions | |
void | testMultiplyTensorsOperator () |
Test order 2 tensor multiplication. | |
void | testEvaluateSphericalFunction () |
The optimizations for symmetric tensors should not corrupt the result. | |
Private Member Functions | |
void | setUp () |
Initialize a lot of tensors. | |
double | calcTens (WTensorSym< 4, 3, double > const &t, WVector3d const &v) |
A helper function that implements the simple approach to tensor evaluation. | |
Private Attributes | |
WTensor< 2, 3, int > | one |
a test tensor | |
WTensor< 2, 3, int > | zero |
a test tensor | |
WTensor< 2, 3, int > | rdm1 |
a test tensor | |
WTensor< 2, 3, int > | rdm2 |
a test tensor | |
WTensor< 2, 3, int > | res1 |
a test tensor | |
WTensor< 2, 3, int > | res2 |
a test tensor | |
WTensor< 2, 3, int > | res3 |
a test tensor | |
WTensor< 2, 3, int > | res4 |
a test tensor | |
WTensorSym< 2, 3, int > | sone |
a test tensor | |
WTensorSym< 2, 3, int > | szero |
a test tensor | |
WTensorSym< 2, 3, int > | srdm1 |
a test tensor | |
WTensorSym< 2, 3, int > | srdm2 |
a test tensor |
Test class for all tensor operators.
Definition at line 554 of file WTensorFunctions_test.h.
double WTensorOperatorsTest::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 721 of file WTensorFunctions_test.h.
Referenced by testEvaluateSphericalFunction().
void WTensorOperatorsTest::setUp | ( | void | ) | [inline, private] |
void WTensorOperatorsTest::testEvaluateSphericalFunction | ( | ) | [inline] |
The optimizations for symmetric tensors should not corrupt the result.
Definition at line 601 of file WTensorFunctions_test.h.
References calcTens().
void WTensorOperatorsTest::testMultiplyTensorsOperator | ( | ) | [inline] |
WTensor< 2, 3, int > WTensorOperatorsTest::one [private] |
a test tensor
Definition at line 741 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensor< 2, 3, int > WTensorOperatorsTest::rdm1 [private] |
a test tensor
Definition at line 745 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensor< 2, 3, int > WTensorOperatorsTest::rdm2 [private] |
a test tensor
Definition at line 747 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensor< 2, 3, int > WTensorOperatorsTest::res1 [private] |
a test tensor
Definition at line 749 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensor< 2, 3, int > WTensorOperatorsTest::res2 [private] |
a test tensor
Definition at line 751 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensor< 2, 3, int > WTensorOperatorsTest::res3 [private] |
a test tensor
Definition at line 753 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensor< 2, 3, int > WTensorOperatorsTest::res4 [private] |
a test tensor
Definition at line 755 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensorSym< 2, 3, int > WTensorOperatorsTest::sone [private] |
a test tensor
Definition at line 757 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensorSym< 2, 3, int > WTensorOperatorsTest::srdm1 [private] |
a test tensor
Definition at line 761 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensorSym< 2, 3, int > WTensorOperatorsTest::srdm2 [private] |
a test tensor
Definition at line 763 of file WTensorFunctions_test.h.
Referenced by setUp(), and testMultiplyTensorsOperator().
WTensorSym< 2, 3, int > WTensorOperatorsTest::szero [private] |
a test tensor
Definition at line 759 of file WTensorFunctions_test.h.
Referenced by testMultiplyTensorsOperator().
WTensor< 2, 3, int > WTensorOperatorsTest::zero [private] |
a test tensor
Definition at line 743 of file WTensorFunctions_test.h.
Referenced by testMultiplyTensorsOperator().