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

Unit test this LookUp table class. More...

#include <WMatrixSym_test.h>

+ Inheritance diagram for WMatrixSymTest:
+ Collaboration diagram for WMatrixSymTest:

Public Member Functions

void testOperatorOn3x3Matrix (void)
 Only the Elements of the upper/lower sym. More...
 
void testAccessOn3x3Matrix (void)
 Access to elements on main diagonal is forbidden. More...
 
void testSetDataWithInvalidLengthForDimension (void)
 If new elements are set via the setData() method then it has to be checked if the dimension is valid for the number of elements which are given. More...
 
void testInvalidAccessOnMainDiagonal (void)
 Accessing diagonal elements is forbidden and an exception should be thrown. More...
 
void testToString (void)
 Renders the matrix to a string, where each row is in a separate line. More...
 
void testOutputStream (void)
 There should be an output operator for symmetric matrices. More...
 
void testInputStream (void)
 There should be an input operator for symmetric matrices, reading data into a given matrix. More...
 

Detailed Description

Unit test this LookUp table class.

All test performed on matrices with double as element type.

Definition at line 75 of file WMatrixSym_test.h.

Member Function Documentation

◆ testAccessOn3x3Matrix()

void WMatrixSymTest::testAccessOn3x3Matrix ( void  )
inline

Access to elements on main diagonal is forbidden.

Then other acess should be symmetric.

Definition at line 91 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData().

+ Here is the call graph for this function:

◆ testInputStream()

void WMatrixSymTest::testInputStream ( void  )
inline

There should be an input operator for symmetric matrices, reading data into a given matrix.

Definition at line 156 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData().

+ Here is the call graph for this function:

◆ testInvalidAccessOnMainDiagonal()

void WMatrixSymTest::testInvalidAccessOnMainDiagonal ( void  )
inline

Accessing diagonal elements is forbidden and an exception should be thrown.

Definition at line 117 of file WMatrixSym_test.h.

References WException::what().

+ Here is the call graph for this function:

◆ testOperatorOn3x3Matrix()

void WMatrixSymTest::testOperatorOn3x3Matrix ( void  )
inline

Only the Elements of the upper/lower sym.

Matrix should be stored.

Definition at line 81 of file WMatrixSym_test.h.

References WMatrixSym< T >::m_data.

◆ testOutputStream()

void WMatrixSymTest::testOutputStream ( void  )
inline

There should be an output operator for symmetric matrices.

Definition at line 140 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData().

+ Here is the call graph for this function:

◆ testSetDataWithInvalidLengthForDimension()

void WMatrixSymTest::testSetDataWithInvalidLengthForDimension ( void  )
inline

If new elements are set via the setData() method then it has to be checked if the dimension is valid for the number of elements which are given.

Definition at line 106 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData(), and WException::what().

+ Here is the call graph for this function:

◆ testToString()

void WMatrixSymTest::testToString ( void  )
inline

Renders the matrix to a string, where each row is in a separate line.

Definition at line 127 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData(), and WMatrixSym< T >::toString().

+ Here is the call graph for this function:

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