30 #ifndef ANASAZI_STATUS_TEST_MAXITER_HPP 31 #define ANASAZI_STATUS_TEST_MAXITER_HPP 63 template <
class ScalarType,
class MV,
class OP>
101 return std::vector<int>(0);
119 maxIters_ = maxIters;
168 std::ostream&
print(std::ostream& os,
int indent = 0)
const {
169 std::string ind(indent,
' ');
170 os << ind <<
"- StatusTestMaxIters: ";
173 os <<
"Passed" << std::endl;
176 os <<
"Failed" << std::endl;
179 os <<
"Undefined" << std::endl;
182 os << ind <<
" MaxIters: " << maxIters_ << std::endl;
std::ostream & print(std::ostream &os, int indent=0) const
Output formatted description of stopping test to output stream.
int getMaxIters()
Get the maximum number of iterations.
TestStatus
Enumerated type used to pass back information from a StatusTest.
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package...
StatusTestMaxIters(int maxIter, bool negate=false)
Constructor.
void clearStatus()
Clears the results of the last status test.
std::vector< int > whichVecs() const
Get the indices for the vectors that passed the test.
void setNegate(bool negate)
Set 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 getStatus() const
Return the result of the most recent checkStatus call.
virtual ~StatusTestMaxIters()
Destructor.
bool getNegate() const
Get the negation policy for the status test.
A status test for testing the number of iterations.
void setMaxIters(int maxIters)
Set the maximum number of iterations.
TestStatus checkStatus(Eigensolver< ScalarType, MV, OP > *solver)
Check status as defined by test.
Common interface of stopping criteria for Anasazi's solvers.
virtual int getNumIters() const =0
Get the current iteration count.
The Eigensolver is a templated virtual base class that defines the basic interface that any eigensolv...
int howMany() const
Get the number of vectors that passed the test.
Declaration and definition of Anasazi::StatusTest.