|
Anasazi
Version of the Day
|
Go to the documentation of this file.
42 #ifndef ANASAZI_EIGENSOLVER_HPP
43 #define ANASAZI_EIGENSOLVER_HPP
59 #include "Teuchos_ParameterList.hpp"
60 #include "Teuchos_RCP.hpp"
61 #include "Teuchos_Array.hpp"
66 template<
class ScalarType,
class MV,
class OP>
87 Teuchos::ParameterList ¶ms );
142 virtual std::vector<typename Teuchos::ScalarTraits<ScalarType>::magnitudeType>
getResNorms() = 0;
146 virtual std::vector<typename Teuchos::ScalarTraits<ScalarType>::magnitudeType>
getRes2Norms() = 0;
150 virtual std::vector<typename Teuchos::ScalarTraits<ScalarType>::magnitudeType>
getRitzRes2Norms() = 0;
169 virtual Teuchos::RCP<StatusTest<ScalarType,MV,OP> >
getStatusTest()
const = 0;
181 virtual void setAuxVecs(
const Teuchos::Array<Teuchos::RCP<const MV> > &auxvecs) = 0;
184 virtual Teuchos::Array<Teuchos::RCP<const MV> >
getAuxVecs()
const = 0;
Templated virtual class for providing orthogonalization/orthonormalization methods.
virtual void setBlockSize(int blockSize)=0
Set the blocksize to be used by the iterative solver in solving this eigenproblem.
virtual int getBlockSize() const =0
Get the blocksize to be used by the iterative solver in solving this eigenproblem.
virtual int getMaxSubspaceDim() const =0
Get the maximum dimension allocated for the search subspace.
virtual Teuchos::RCP< StatusTest< ScalarType, MV, OP > > getStatusTest() const =0
Get the current StatusTest used by the solver.
virtual void currentStatus(std::ostream &os)=0
This method requests that the solver print out its current status to screen.
virtual Teuchos::Array< Teuchos::RCP< const MV > > getAuxVecs() const =0
Get the auxiliary vectors for the solver.
Types and exceptions used within Anasazi solvers and interfaces.
virtual void setStatusTest(Teuchos::RCP< StatusTest< ScalarType, MV, OP > > test)=0
Set a new StatusTest for the solver.
Forward declaration of pure virtual base class Anasazi::StatusTest.
Forward declaration of the virtual base class Anasazi::Eigensolver.
Anasazi's templated pure virtual class for managing the sorting of approximate eigenvalues computed b...
Abstract base class which defines the interface required by an eigensolver and status test class to c...
virtual int getCurSubspaceDim() const =0
Get the dimension of the search subspace used to generate the current eigenvectors and eigenvalues.
virtual void initialize()=0
Initialize the solver with the initial vectors from the eigenproblem or random data.
virtual std::vector< Value< ScalarType > > getRitzValues()=0
Get the Ritz values from the previous iteration.
virtual void resetNumIters()=0
Reset the iteration count.
Output managers remove the need for the eigensolver to know any information about the required output...
Virtual base class which defines the interface between an eigensolver and a class whose job is the so...
virtual Teuchos::RCP< const MV > getRitzVectors()=0
Get the Ritz vectors from the previous iteration. These are indexed using getRitzIndex().
The Eigensolver is a templated virtual base class that defines the basic interface that any eigensolv...
virtual std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > getRes2Norms()=0
virtual ~Eigensolver()
Destructor.
virtual std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > getRitzRes2Norms()=0
virtual std::vector< int > getRitzIndex()=0
Get the index used for indexing the compressed storage used for Ritz vectors for real,...
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package.
This class defines the interface required by an eigensolver and status test class to compute solution...
Eigensolver()
Default Constructor.
virtual int getNumIters() const =0
Get the current iteration count.
virtual bool isInitialized() const =0
States whether the solver has been initialized or not.
Common interface of stopping criteria for Anasazi's solvers.
virtual const Eigenproblem< ScalarType, MV, OP > & getProblem() const =0
Get a constant reference to the eigenvalue problem.
virtual void iterate()=0
This method performs eigensolvers iterations until the status test indicates the need to stop or an e...
virtual std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > getResNorms()=0
Get the current residual norms.
virtual void setAuxVecs(const Teuchos::Array< Teuchos::RCP< const MV > > &auxvecs)=0
Set the auxiliary vectors for the solver.
Anasazi header file which uses auto-configuration information to include necessary C++ headers.
Anasazi's templated virtual class for providing routines for orthogonalization and orthonormalization...
Abstract class definition for Anasazi Output Managers.