Go to the documentation of this file.
10 #include <AnasaziBasicEigenproblem.hpp>
11 #include <AnasaziSolverManager.hpp>
12 #include <Teuchos_ParameterList.hpp>
16 template <
class ScalarT>
22 typedef Anasazi::MultiVec<ScalarT>
MV;
23 typedef Anasazi::Operator<ScalarT>
OP;
26 typedef Anasazi::MultiVecTraits<ScalarT, MV>
MVT;
38 myProblem_->setM(Teuchos::rcp(
new OP_C(Teuchos::rcp(&M,
false) ) ));
48 myPL_.set(
"Block Size", blocksize );
49 int dim =
A_->getOp().dimX();
51 Teuchos::RCP<MV> ivec = Teuchos::rcp(
new MV_C(dim,blocksize) );
89 myPL_.set(
"Verbosity", verbosity );
95 myPL_.set(
"Orthogonalization", mode );
110 myPL_.set(
"Which", mode );
118 myPL_.set(
"Num Blocks", numBlocks);
123 myPL_.set(
"Maximum Restarts", maxRestarts );
131 myPL_.set(
"Convergence Tolerance", tolerance);
140 myPL_.set(
"Relative Convergence Tolerance", rct);
155 myPL_.set(
"Max Locked", val);
185 const Anasazi::Eigensolution<ScalarT, MV>& sol =
myProblem_->getSolution();
197 Teuchos::RCP< Anasazi::BasicEigenproblem<ScalarT, MV, OP> >
getProblem()
203 virtual std::ostream& (std::ostream& os)
const {
208 Teuchos::RCP<OP_C>
A_;
209 Teuchos::RCP< Anasazi::BasicEigenproblem<ScalarT, MV, OP> >
myProblem_;
213 Teuchos::RCP< Anasazi::SolverManager<ScalarT, MV, OP> >
solver_;
concepts::Array< concepts::Vector< ScalarT > * > efs_
void setVerbosity(int verbosity=Anasazi::Errors)
virtual uint converged() const
Returns the number of converged eigen pairs.
Interafce for eigenvalue solvers.
void setMode(std::string mode="LM")
void setMaxRestarts(int maxRestarts=100)
Teuchos::RCP< Anasazi::SolverManager< ScalarT, MV, OP > > solver_
Teuchos::RCP< Anasazi::BasicEigenproblem< ScalarT, MV, OP > > myProblem_
void setOrthogonalization(std::string mode="SVQB")
BlockKrylovSchur: the desired orthogonalization: DGKS or SVQB.
const concepts::Real norm(const concepts::Real &v)
Returns the square of a real value.
void setBlockSize(int blocksize=1)
void setRelConvTol(bool rct)
Relative Convergence Tolerance.
void setConvTol(double tolerance)
Convergence Tolerance.
AnasaziOp< ScalarT > OP_C
void setMaxLocked(int val)
Max Locked.
Anasazi::MultiVecTraits< ScalarT, MV > MVT
concepts::Array< ScalarT > evs_
void setHermitian(bool isHermite)
AnasaziES(SolverType solverType, concepts::Operator< ScalarT > &A)
Abstract class for an operator.
void setNumBlocks(int numBlocks)
for Block Krylov Chur.
bool setProblem()
initialises the problem with the specified parameters, and returns if the configuration is valid
void setConvergenceNorm(std::string norm="2")
Convergence Norm.
virtual const concepts::Array< concepts::Vector< ScalarT > * > & getEF()
Returns an array with the eigen functions.
void setM(concepts::Operator< ScalarT > &M)
Anasazi::MultiVec< ScalarT > MV
Anasazi::Operator< ScalarT > OP
Teuchos::ParameterList myPL_
std::string typeOf(const T &t)
Return the typeid name of a class object.
Teuchos::RCP< Anasazi::BasicEigenproblem< ScalarT, MV, OP > > getProblem()
AnasaziMV< ScalarT > MV_C
virtual uint iterations() const
Returns the number of iterations.
virtual const concepts::Array< ScalarT > & getEV()
Returns an array with the eigen values.
Basic namespace for Concepts-2.