OpenWalnut
1.5.0dev
|
Test class for some tensor functions. More...
#include <WTensorFunctions_test.h>
Public Member Functions | |
void | testSpecialSymMatrixEigenvalueTestCaseNumericalStability (void) |
The eigenvalue of the symmetrical matrix: 0.000179516, 2.09569e-05, 2.76557e-06, 0.000170189, -5.52619e-07, 0.00015239 (0.000196397;0.000155074;0.000150625) More... | |
void | testJacobiEigenvectors () |
Test the jacobi eigenvector calculation. More... | |
void | testCardanoEigenvalues () |
Test the cardano eigenvalue calculation. More... | |
void | testLogAndExp () |
Test if tensor log and exp functions behave correctly. More... | |
Private Member Functions | |
template<std::size_t dim, typename Data_T > | |
WTensorSym< 2, dim, Data_T > | similarity_rotate_givens (WTensorSym< 2, dim, Data_T > const &m, std::size_t i, std::size_t j, double angle) |
A helper function performing a similarity transform using a givens rotation. More... | |
template<std::size_t dim, typename Data_T > | |
void | compare_results (WTensorSym< 2, dim, Data_T > const &m, RealEigenSystem const &sys) |
Test if the given vectors are eigenvectors to the given eigenvalues of a symmetric matrix. More... | |
Test class for some tensor functions.
Definition at line 42 of file WTensorFunctions_test.h.
|
inlineprivate |
Test if the given vectors are eigenvectors to the given eigenvalues of a symmetric matrix.
m | A symmetric matrix. |
sys | The eigen system ( eigenvalues and eigenvectors ) |
Definition at line 552 of file WTensorFunctions_test.h.
Referenced by testJacobiEigenvectors().
|
inlineprivate |
A helper function performing a similarity transform using a givens rotation.
m | The symmetric tensor to transform. |
i | A row index. |
j | A column index. |
angle | The rotation angle (in radians). |
Definition at line 506 of file WTensorFunctions_test.h.
Referenced by testCardanoEigenvalues(), and testJacobiEigenvectors().
|
inline |
Test the cardano eigenvalue calculation.
Definition at line 307 of file WTensorFunctions_test.h.
References similarity_rotate_givens().
|
inline |
Test the jacobi eigenvector calculation.
Definition at line 70 of file WTensorFunctions_test.h.
References compare_results(), and similarity_rotate_givens().
|
inline |
Test if tensor log and exp functions behave correctly.
Definition at line 471 of file WTensorFunctions_test.h.
|
inline |
The eigenvalue of the symmetrical matrix: 0.000179516, 2.09569e-05, 2.76557e-06, 0.000170189, -5.52619e-07, 0.00015239 (0.000196397;0.000155074;0.000150625)
Definition at line 50 of file WTensorFunctions_test.h.