DecompositionSystem interface.
More...
#include <ConstrainedOptPack_DecompositionSystemTester.hpp>
Set and access options | |
| enum | EPrintTestLevel { PRINT_NOT_SELECTED = 0, PRINT_NONE = 1, PRINT_BASIC = 2, PRINT_MORE = 3, PRINT_ALL = 4 } |
| More... | |
| 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 | mult_warning_tol (const value_type &mult_warning_tol) |
| Set the relative tolerance for numerical tests of matrix-vector multiplication above which to print a warning. | |
| void | mult_error_tol (const value_type &mult_error_tol) |
Set the relative tolerance for numerical tests of matrix-vector multiplication above which to return false from the testing function. | |
| void | solve_warning_tol (const value_type &solve_warning_tol) |
| Set the relative tolerance for numerical tests of matrix-vector solves above which to print a warning. | |
| void | solve_error_tol (const value_type &solve_error_tol) |
Set the relative tolerance for numerical tests of matrix-vector solves above which to return false from the testing function. | |
Public Member Functions | |
| DecompositionSystemTester (EPrintTestLevel print_tests=PRINT_NOT_SELECTED, bool dump_all=false, bool throw_exception=true, size_type num_random_tests=1, value_type mult_warning_tol=1e-14, value_type mult_error_tol=1e-8, value_type solve_warning_tol=1e-14, value_type solve_error_tol=1e-8) | |
| Constructor (default options). | |
| bool | test_decomp_system (const DecompositionSystem &decomp_sys, const MatrixOp &Gc, const MatrixOp *Z, const MatrixOp *Y, const MatrixOpNonsing *R, const MatrixOp *Uz, const MatrixOp *Uy, std::ostream *out) |
Test a DecompositionSystem object after DecompositionSystem::update_basis() is called. | |
DecompositionSystem interface.
This testing class is basically a unit tester for DecompositionSystem. The method test_decomp_system() runs many different tests to validate the interface and the matrix objects associated with the interface. The method test_decomp_system() should only be called after decomp_sys.update_decomp(...) is called on the DecompositionSystem object decomp_sys. The output decomposition matrices are passed through a series of tests. The compatibility of the matrices described in the postconditions for DecompositionSytem::update_decomp() are also checked in a series of tests. If the method test_decomp_system() returns true, then the client can feel fairly confident that the things are functioning properly (but this is not guaranteed of course).
The tests performed by this testing class are designed to allow some validation for even the largest systems and will produce various levels of output so as to be usefull in debugging.
ToDo: Finish documentation!
Definition at line 56 of file ConstrainedOptPack_DecompositionSystemTester.hpp.
|
|
Definition at line 63 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
||||||||||||||||||||||||||||||||||||
|
Constructor (default options).
Definition at line 49 of file ConstrainedOptPack_DecompositionSystemTester.cpp. |
|
|
Set the level of output produced durring tests.
Definition at line 71 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
|
Set whether matrices, vectors ect. are printed (warning, this may be a lot of output for larger systems).
Definition at line 73 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
|
Set whether an exception that is thrown is thrown clear out of the testing function or not.
Definition at line 75 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
|
Set the number of random test cases created.
Definition at line 77 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
|
Set the relative tolerance for numerical tests of matrix-vector multiplication above which to print a warning.
Definition at line 79 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
|
Set the relative tolerance for numerical tests of matrix-vector multiplication above which to return
Definition at line 81 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
|
Set the relative tolerance for numerical tests of matrix-vector solves above which to print a warning.
Definition at line 83 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
|
Set the relative tolerance for numerical tests of matrix-vector solves above which to return
Definition at line 85 of file ConstrainedOptPack_DecompositionSystemTester.hpp. |
|
||||||||||||||||||||||||||||||||||||
|
Test a
Definition at line 69 of file ConstrainedOptPack_DecompositionSystemTester.cpp. |
1.3.9.1