#include <AnasaziStatusTestResNorm.hpp>
Inheritance diagram for Anasazi::StatusTestResNorm< ScalarType, MV, OP >:

Public Types | |
Enums | |
| enum | ResType |
| Enumerated type used to specify which residual norm used by this status test. More... | |
Public Member Functions | |
Constructors/destructors | |
| StatusTestResNorm (MagnitudeType tol, int quorum=-1, ResType whichNorm=RES_ORTH, bool scaled=true) | |
| Constructor. | |
| virtual | ~StatusTestResNorm () |
| Destructor. | |
Status methods | |
| TestStatus | checkStatus (Eigensolver< ScalarType, MV, OP > *solver) |
| TestStatus | getStatus () const |
| Return the result of the most recent checkStatus call. | |
Accessor methods | |
| void | setQuorum (int quorum) |
| Set quorum. | |
| int | getQuorum () |
| Get quorum. | |
| void | setTolerance (MagnitudeType tol) |
| Set tolerance. This also resets the test status to Undefined. | |
| MagnitudeType | getTolerance () |
| Get tolerance. | |
| void | setWhichNorm (ResType whichNorm) |
| Set the residual norm to be used by the status test. | |
| ResType | getWhichNorm () |
| Return the residual norm used by the status test. | |
| void | setScale (bool relscale) |
| Instruct test to scale norms by eigenvalue estimates (relative scale). This also resets the test status to Undefined. | |
| bool | getScale () |
| Returns true if the test scales the norms by the eigenvalue estimates (relative scale). | |
| std::vector< int > | whichVecs () |
| Get the indices for the vectors that passed the test. | |
| int | howMany () |
| Get the number of vectors that passed the test. | |
Reset methods | |
| void | reset () |
| Informs the status test that it should reset its internal configuration to the uninitialized state. | |
| void | clearStatus () |
| Clears the results of the last status test. | |
Print methods | |
| ostream & | print (ostream &os, int indent=0) const |
| Output formatted description of stopping test to output stream. | |
Anasazi::StatusTestResNorm was designed to be used as a test for convergence. The tester compares the norms of the residual vectors against a user specified tolerance.
In addition to specifying the tolerance, the user may specify:
Definition at line 63 of file AnasaziStatusTestResNorm.hpp.
|
|||||
|
Enumerated type used to specify which residual norm used by this status test.
Definition at line 75 of file AnasaziStatusTestResNorm.hpp. |
|
||||||||||||||||||||||||
|
Constructor.
Definition at line 211 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Destructor.
Definition at line 90 of file AnasaziStatusTestResNorm.hpp. |
|
||||||||||
|
Check status as defined by test.
Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 215 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Return the result of the most recent checkStatus call.
Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 101 of file AnasaziStatusTestResNorm.hpp. |
|
||||||||||
|
Set quorum. Setting quorum to -1 signifies that all residuals from the solver must meet the tolerance. This also resets the test status to Undefined. Definition at line 112 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Get quorum.
Definition at line 119 of file AnasaziStatusTestResNorm.hpp. |
|
||||||||||
|
Set tolerance. This also resets the test status to Undefined.
Definition at line 126 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Get tolerance.
Definition at line 132 of file AnasaziStatusTestResNorm.hpp. |
|
||||||||||
|
Set the residual norm to be used by the status test. This also resets the test status to Undefined. Definition at line 138 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Return the residual norm used by the status test.
Definition at line 144 of file AnasaziStatusTestResNorm.hpp. |
|
||||||||||
|
Instruct test to scale norms by eigenvalue estimates (relative scale). This also resets the test status to Undefined.
Definition at line 149 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Returns true if the test scales the norms by the eigenvalue estimates (relative scale).
Definition at line 155 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Get the indices for the vectors that passed the test.
Definition at line 158 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Get the number of vectors that passed the test.
Definition at line 163 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Informs the status test that it should reset its internal configuration to the uninitialized state. This is necessary for the case when the status test is being reused by another solver or for another eigenvalue problem. The status test may have information that pertains to a particular problem or solver state. The internal information will be reset back to the uninitialized state. The user specified information that the convergence test uses will remain. Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 177 of file AnasaziStatusTestResNorm.hpp. |
|
|||||||||
|
Clears the results of the last status test. This should be distinguished from the reset() method, as it only clears the cached result from the last status test, so that a call to getStatus() will return Undefined. This is necessary for the SEQOR and SEQAND tests in the StatusTestCombo class, which may short circuit and not evaluate all of the StatusTests contained in them. Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 187 of file AnasaziStatusTestResNorm.hpp. |
|
||||||||||||||||
|
Output formatted description of stopping test to output stream.
Implements Anasazi::StatusTest< ScalarType, MV, OP >. Definition at line 270 of file AnasaziStatusTestResNorm.hpp. |
1.3.9.1