![]() |
Peano
|
Provides tests for types Vector, DynamicVector and all Vector functionality. More...
#include <MatrixTest.h>
Public Member Functions | |
MatrixTest () | |
Cosntructor. | |
virtual | ~MatrixTest () |
Destructor, empty. | |
virtual void | run () |
This routine is triggered by the TestCaseCollection. | |
virtual void | setUp () |
Setup your test case. | |
![]() | |
TestCase (const std::string &testCaseName) | |
Constructor. | |
virtual | ~TestCase () |
Destructor. | |
int | getNumberOfErrors () const |
std::string | getTestCaseName () const |
Private Member Functions | |
void | testConstruction () |
Tests constructors. | |
void | testAssignment () |
Tests methods from MatrixAssign.h. | |
void | testMatrixOperations () |
Tests methods from MatrixOperations.h. | |
void | testMatrixMatrixOperations () |
Tests methods from MatrixMatrixOperations.h. | |
void | testTransposedMatrix () |
Tests operations with TransposedMatrix.h. | |
Additional Inherited Members | |
![]() | |
TestCase ()=delete | |
![]() | |
const std::string | _testCaseName |
Name of the test case. | |
int | _errors |
Error counter. | |
bool | _error |
Indicate within macro if one specific validation failed. | |
Provides tests for types Vector, DynamicVector and all Vector functionality.
Definition at line 18 of file MatrixTest.h.
tarch::la::tests::MatrixTest::MatrixTest | ( | ) |
Cosntructor.
Definition at line 12 of file MatrixTest.cpp.
|
virtual |
Destructor, empty.
Definition at line 57 of file MatrixTest.h.
|
virtual |
This routine is triggered by the TestCaseCollection.
Implements tarch::tests::TestCase.
Definition at line 17 of file MatrixTest.cpp.
References testMethod.
|
virtual |
Setup your test case.
Definition at line 67 of file MatrixTest.h.
|
private |
Tests methods from MatrixAssign.h.
Definition at line 40 of file MatrixTest.cpp.
References validateEquals.
|
private |
Tests constructors.
Definition at line 26 of file MatrixTest.cpp.
References tarch::la::Matrix< Rows, Cols, Scalar >::cols(), tarch::la::Matrix< Rows, Cols, Scalar >::rows(), tarch::la::Matrix< Rows, Cols, Scalar >::size(), and validateEquals.
|
private |
Tests methods from MatrixMatrixOperations.h.
Definition at line 68 of file MatrixTest.cpp.
References tarch::la::equalsReturnIndex(), validate, and validateEquals.
|
private |
Tests methods from MatrixOperations.h.
Definition at line 53 of file MatrixTest.cpp.
References validateEquals.
|
private |
Tests operations with TransposedMatrix.h.
Definition at line 101 of file MatrixTest.cpp.
References tarch::la::transpose(), validate, and validateEquals.