BasisSystem interface.
More...
#include <AbstractLinAlgPack_BasisSystemTester.hpp>
Public types | |
| enum | EPrintTestLevel { PRINT_NOT_SELECTED = 0, PRINT_NONE = 1, PRINT_BASIC = 2, PRINT_MORE = 3, PRINT_ALL = 4 } |
| More... | |
Set and access options | |
| void | print_tests (const EPrintTestLevel &print_tests) |
| Set the level of output produced durring tests. | |
| void | dump_all (const bool &dump_all) |
| Set whether matrices, vectors ect. are printed (warning, this may be a lot of output for larger systems). | |
| void | throw_exception (const bool &throw_exception) |
| Set whether an exception that is thrown is thrown clear out of the testing function or not. | |
| void | num_random_tests (const size_type &num_random_tests) |
| Set the number of random test cases created. | |
| void | warning_tol (const value_type &warning_tol) |
| Set the relative tolerance for numerical tests above which to print a warning. | |
| void | error_tol (const value_type &error_tol) |
| Set the relative tolerance for numerical tests above which to return false from the testing function. | |
Constructors / initializers | |
| BasisSystemTester (EPrintTestLevel print_tests=PRINT_NOT_SELECTED, bool dump_all=false, bool throw_exception=true, size_type num_random_tests=1, value_type warning_tol=1e-14, value_type error_tol=1e-8) | |
| Constructor (default options). | |
Test basis system | |
| bool | test_basis_system (const BasisSystem &basis_sys, const MatrixOp *Gc, const MatrixOpNonsing *C, const MatrixOp *N, const MatrixOp *D, const MatrixOp *GcUP, std::ostream *out) |
Test a BasisSystem object after BasisSystem::update_basis() is called. | |
BasisSystem interface.
This testing class is basically a unit tester for BasisSystem. The method test_basis_system() runs many different tests to validate the interface and the objects allocated with the interface. The method test_basis_system() should only be called after basis_sys.update_basis(...) is called on the BasisSystem object basis_sys. The output basis matrix C and/or direct sensitivity matrix D are passed through a series of tests using the testing classes MatrixOpNonsingTester and MatrixWithOpTester respectively. The compatibility of the matrices Gc, C and/or D are also checked in a series of tests. If the method test_basis_system() returns true, then the client can feel fairly confident that the basis matrix object is functioning properly.
The tests performed by this testing class are designed to allow some validation for even the larges systems and will produce various levels of output so as to be usefull in debugging.
ToDo: Finish documentation!
Definition at line 56 of file AbstractLinAlgPack_BasisSystemTester.hpp.
|
|
Definition at line 63 of file AbstractLinAlgPack_BasisSystemTester.hpp. |
|
||||||||||||||||||||||||||||
|
Constructor (default options).
Definition at line 48 of file AbstractLinAlgPack_BasisSystemTester.cpp. |
|
|
Set the level of output produced durring tests.
Definition at line 77 of file AbstractLinAlgPack_BasisSystemTester.hpp. |
|
|
Set whether matrices, vectors ect. are printed (warning, this may be a lot of output for larger systems).
Definition at line 79 of file AbstractLinAlgPack_BasisSystemTester.hpp. |
|
|
Set whether an exception that is thrown is thrown clear out of the testing function or not.
Definition at line 81 of file AbstractLinAlgPack_BasisSystemTester.hpp. |
|
|
Set the number of random test cases created.
Definition at line 83 of file AbstractLinAlgPack_BasisSystemTester.hpp. |
|
|
Set the relative tolerance for numerical tests above which to print a warning.
Definition at line 85 of file AbstractLinAlgPack_BasisSystemTester.hpp. |
|
|
Set the relative tolerance for numerical tests above which to return false from the testing function.
Definition at line 87 of file AbstractLinAlgPack_BasisSystemTester.hpp. |
|
||||||||||||||||||||||||||||||||
|
Test a
Definition at line 64 of file AbstractLinAlgPack_BasisSystemTester.cpp. |
1.3.9.1