OpenWalnut
1.5.0dev
|
#include <WLinearAlgebraFunctions_test.h>
Public Member Functions | |
void | testMatrixVectorMultiply (void) |
The vector multiplied with the matrix is just a new vector where each component is the dot product of the corresponding row with the vector. More... | |
void | test3x3MatrixInversion (void) |
If the matrix is not singular then an inverse should exist and be definite. More... | |
void | test3x3MatrixInversionOnSingularMatrix (void) |
On singular matrices no inverse exists! More... | |
void | test4x4Inverse () |
Test the inversion of 4x4 matrices. More... | |
void | testLinearIndependeceOfTwoVectors (void) |
Two vectors are linear independent if the are not parallel. More... | |
void | testLinearIndependeceOfTheNullVector (void) |
Two vectors are linear independent if the are not parallel. More... | |
void | testLinearIndependenceOnNumericalStability (void) |
Small changes should nothing do to correctness. More... | |
void | testComputeSVD (void) |
Test SVD calculation. More... | |
void | testPseudoInverse (void) |
Test pseudoInverse calculation. More... | |
Tests for WMatrix.
Definition at line 42 of file WLinearAlgebraFunctions_test.h.
|
inline |
If the matrix is not singular then an inverse should exist and be definite.
Definition at line 69 of file WLinearAlgebraFunctions_test.h.
|
inline |
On singular matrices no inverse exists!
Definition at line 97 of file WLinearAlgebraFunctions_test.h.
|
inline |
Test the inversion of 4x4 matrices.
Definition at line 116 of file WLinearAlgebraFunctions_test.h.
References WMatrix< T >::makeIdentity().
|
inline |
Test SVD calculation.
Definition at line 182 of file WLinearAlgebraFunctions_test.h.
References WMatrix< T >::getNbCols(), WMatrix< T >::getNbRows(), WMatrix< T >::setZero(), WValue< T >::size(), and WMatrix< T >::transposed().
|
inline |
Two vectors are linear independent if the are not parallel.
Definition at line 154 of file WLinearAlgebraFunctions_test.h.
|
inline |
Two vectors are linear independent if the are not parallel.
Definition at line 142 of file WLinearAlgebraFunctions_test.h.
|
inline |
Small changes should nothing do to correctness.
Definition at line 166 of file WLinearAlgebraFunctions_test.h.
References wlimits::DBL_EPS.
|
inline |
The vector multiplied with the matrix is just a new vector where each component is the dot product of the corresponding row with the vector.
Definition at line 49 of file WLinearAlgebraFunctions_test.h.
|
inline |
Test pseudoInverse calculation.
Definition at line 223 of file WLinearAlgebraFunctions_test.h.
References WMatrix< T >::getNbCols(), and WMatrix< T >::getNbRows().