11#ifndef ANASAZI_STATUS_TEST_MAXITER_HPP
12#define ANASAZI_STATUS_TEST_MAXITER_HPP
44template <
class ScalarType,
class MV,
class OP>
82 return std::vector<int>(0);
151 os <<
ind <<
"- StatusTestMaxIters: ";
154 os <<
"Passed" << std::endl;
157 os <<
"Failed" << std::endl;
160 os <<
"Undefined" << std::endl;
163 os <<
ind <<
" MaxIters: " << maxIters_ << std::endl;
Declaration and definition of Anasazi::StatusTest.
Anasazi's templated virtual class for constructing an operator that can interface with the OperatorTr...
A status test for testing the number of iterations.
std::ostream & print(std::ostream &os, int indent=0) const
Output formatted description of stopping test to output stream.
std::vector< int > whichVecs() const
Get the indices for the vectors that passed the test.
void clearStatus()
Clears the results of the last status test.
void setMaxIters(int maxIters)
Set the maximum number of iterations.
int getMaxIters()
Get the maximum number of iterations.
void setNegate(bool negate)
Set the negation policy for the status test.
TestStatus getStatus() const
Return the result of the most recent checkStatus call.
bool getNegate() const
Get the negation policy for the status test.
void reset()
Informs the status test that it should reset its internal configuration to the uninitialized state.
TestStatus checkStatus(Eigensolver< ScalarType, MV, OP > *solver)
Check status as defined by test.
virtual ~StatusTestMaxIters()
Destructor.
StatusTestMaxIters(int maxIter, bool negate=false)
Constructor.
int howMany() const
Get the number of vectors that passed the test.
Common interface of stopping criteria for Anasazi's solvers.
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package.
TestStatus
Enumerated type used to pass back information from a StatusTest.