MatrixOpNonsing interface.
More...
#include <AbstractLinAlgPack_MatrixOpNonsingTester.hpp>
Public types | |
| enum | ETestLevel { TEST_LEVEL_2_BLAS = 1, TEST_LEVEL_3_BLAS = 2 } |
| More... | |
| enum | EPrintTestLevel { PRINT_NONE = 0, PRINT_BASIC = 1, PRINT_MORE = 2, PRINT_ALL = 3 } |
| More... | |
Set and access options | |
| void | test_level (const ETestLevel &test_level) |
| Set the level of testing. | |
| void | print_tests (const EPrintTestLevel &print_tests) |
| Set the level of output produced durring tests. | |
| void | dump_all (const bool &dump_all) |
| Set whether vectors etc. 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 | |
| MatrixOpNonsingTester (ETestLevel test_level=TEST_LEVEL_2_BLAS, EPrintTestLevel print_tests=PRINT_NONE, 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 MatrixOpNonsing | |
| bool | test_matrix (const MatrixOpNonsing &M, const char M_name[], std::ostream *out) |
Test a MatrixOpNonsing object. | |
MatrixOpNonsing interface.
This testing class is basically a unit tester for MatrixOpNonsing. The method test_matrix() runs several different tests to check that
and
using randomly generated vectors v and the methods MatrixNonsing::V_InvMtV() and MatrixOp::Vp_StMtV(). These test should only be performed, of course, on a fully initialized MatrixOpNonsing object.
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 51 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp.
|
|
Definition at line 58 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
|
Definition at line 63 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
||||||||||||||||||||||||||||||||
|
Constructor (default options).
Definition at line 48 of file AbstractLinAlgPack_MatrixOpNonsingTester.cpp. |
|
|
Set the level of testing.
Definition at line 76 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
|
Set the level of output produced durring tests.
Definition at line 78 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
|
Set whether vectors etc. are printed (warning, this may be a lot of output for larger systems).
Definition at line 80 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
|
Set whether an exception that is thrown is thrown clear out of the testing function or not.
Definition at line 82 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
|
Set the number of random test cases created.
Definition at line 84 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
|
Set the relative tolerance for numerical tests above which to print a warning.
Definition at line 86 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
|
Set the relative tolerance for numerical tests above which to return false from the testing function.
Definition at line 88 of file AbstractLinAlgPack_MatrixOpNonsingTester.hpp. |
|
||||||||||||||||
|
Test a
Definition at line 66 of file AbstractLinAlgPack_MatrixOpNonsingTester.cpp. |
1.3.9.1