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

Tests for WMatrix. More...

#include <WMatrix_test.h>

+ Inheritance diagram for WMatrixTest:
+ Collaboration diagram for WMatrixTest:

Public Member Functions

void testInstantiation (void)
 Instantiation should throw nothing. More...
 
void testCopyInstantiation (void)
 Instantiation with copy constructor should throw nothing. More...
 
void testGetNbRowsAndCols (void)
 Number of rows and columns should be return correctly. More...
 
void testElementAccessOperator (void)
 Element access operator should work correctly. More...
 
void testConstElementAccessOperator (void)
 Constant element access operator should work correctly. More...
 
void testEqualityOperator (void)
 Test for equality comparison of two matrices. More...
 
void testInequalityOperator (void)
 Test for inequality comparison of two matrices. More...
 
void testAssignmentOperator (void)
 Test assignment operator of WMatrix. More...
 
void testTransposed (void)
 Test transposed method of WMatrix. More...
 
void testIsIdentity (void)
 Test isIdentity method of WMatrix. More...
 

Detailed Description

Tests for WMatrix.

Definition at line 35 of file WMatrix_test.h.

Member Function Documentation

◆ testAssignmentOperator()

void WMatrixTest::testAssignmentOperator ( void  )
inline

Test assignment operator of WMatrix.

Definition at line 184 of file WMatrix_test.h.

◆ testConstElementAccessOperator()

void WMatrixTest::testConstElementAccessOperator ( void  )
inline

Constant element access operator should work correctly.

Definition at line 89 of file WMatrix_test.h.

◆ testCopyInstantiation()

void WMatrixTest::testCopyInstantiation ( void  )
inline

Instantiation with copy constructor should throw nothing.

Definition at line 50 of file WMatrix_test.h.

◆ testElementAccessOperator()

void WMatrixTest::testElementAccessOperator ( void  )
inline

Element access operator should work correctly.

Definition at line 70 of file WMatrix_test.h.

◆ testEqualityOperator()

void WMatrixTest::testEqualityOperator ( void  )
inline

Test for equality comparison of two matrices.

Definition at line 104 of file WMatrix_test.h.

◆ testGetNbRowsAndCols()

void WMatrixTest::testGetNbRowsAndCols ( void  )
inline

Number of rows and columns should be return correctly.

Definition at line 59 of file WMatrix_test.h.

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

+ Here is the call graph for this function:

◆ testInequalityOperator()

void WMatrixTest::testInequalityOperator ( void  )
inline

Test for inequality comparison of two matrices.

Definition at line 144 of file WMatrix_test.h.

◆ testInstantiation()

void WMatrixTest::testInstantiation ( void  )
inline

Instantiation should throw nothing.

Definition at line 41 of file WMatrix_test.h.

◆ testIsIdentity()

void WMatrixTest::testIsIdentity ( void  )
inline

Test isIdentity method of WMatrix.

Definition at line 254 of file WMatrix_test.h.

References WMatrix< T >::isIdentity(), and WMatrix< T >::makeIdentity().

+ Here is the call graph for this function:

◆ testTransposed()

void WMatrixTest::testTransposed ( void  )
inline

Test transposed method of WMatrix.

Definition at line 230 of file WMatrix_test.h.

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

+ Here is the call graph for this function:

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