OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WLinearAlgebraFunctionsTest Class Reference

Tests for WMatrix. More...

#include <WLinearAlgebraFunctions_test.h>

+ Inheritance diagram for WLinearAlgebraFunctionsTest:
+ Collaboration diagram for WLinearAlgebraFunctionsTest:

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...
 

Detailed Description

Tests for WMatrix.

Definition at line 42 of file WLinearAlgebraFunctions_test.h.

Member Function Documentation

◆ test3x3MatrixInversion()

void WLinearAlgebraFunctionsTest::test3x3MatrixInversion ( void  )
inline

If the matrix is not singular then an inverse should exist and be definite.

Definition at line 69 of file WLinearAlgebraFunctions_test.h.

◆ test3x3MatrixInversionOnSingularMatrix()

void WLinearAlgebraFunctionsTest::test3x3MatrixInversionOnSingularMatrix ( void  )
inline

On singular matrices no inverse exists!

Definition at line 97 of file WLinearAlgebraFunctions_test.h.

◆ test4x4Inverse()

void WLinearAlgebraFunctionsTest::test4x4Inverse ( )
inline

Test the inversion of 4x4 matrices.

Definition at line 116 of file WLinearAlgebraFunctions_test.h.

References WMatrix< T >::makeIdentity().

+ Here is the call graph for this function:

◆ testComputeSVD()

void WLinearAlgebraFunctionsTest::testComputeSVD ( void  )
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().

+ Here is the call graph for this function:

◆ testLinearIndependeceOfTheNullVector()

void WLinearAlgebraFunctionsTest::testLinearIndependeceOfTheNullVector ( void  )
inline

Two vectors are linear independent if the are not parallel.

Definition at line 154 of file WLinearAlgebraFunctions_test.h.

◆ testLinearIndependeceOfTwoVectors()

void WLinearAlgebraFunctionsTest::testLinearIndependeceOfTwoVectors ( void  )
inline

Two vectors are linear independent if the are not parallel.

Definition at line 142 of file WLinearAlgebraFunctions_test.h.

◆ testLinearIndependenceOnNumericalStability()

void WLinearAlgebraFunctionsTest::testLinearIndependenceOnNumericalStability ( void  )
inline

Small changes should nothing do to correctness.

Definition at line 166 of file WLinearAlgebraFunctions_test.h.

References wlimits::DBL_EPS.

◆ testMatrixVectorMultiply()

void WLinearAlgebraFunctionsTest::testMatrixVectorMultiply ( void  )
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.

◆ testPseudoInverse()

void WLinearAlgebraFunctionsTest::testPseudoInverse ( void  )
inline

Test pseudoInverse calculation.

Definition at line 223 of file WLinearAlgebraFunctions_test.h.

References WMatrix< T >::getNbCols(), and WMatrix< T >::getNbRows().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: