Anasazi  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | List of all members
Anasazi::Factory Class Reference

This provides a factory to build Anasazi solvers using parameter lists. More...

#include <AnasaziFactory.hpp>

Static Public Member Functions

template<class ScalarType , class MV , class OP >
static Teuchos::RCP
< SolverManager< ScalarType,
MV, OP > > 
create (const std::string &solverType, const Teuchos::RCP< Eigenproblem< ScalarType, MV, OP > > problem, Teuchos::ParameterList &pl)
 Create an instance of Anasazi::SolverManager given the string name of the solver type. More...
 
template<class ScalarType , class MV , class OP >
static Teuchos::RCP
< SolverManager< ScalarType,
MV, OP > > 
create (const std::string &solverType, const Teuchos::RCP< BasicEigenproblem< ScalarType, MV, OP > > &problem, Teuchos::ParameterList &pl)
 Specialize create for BasicEigenproblem type. More...
 

Detailed Description

This provides a factory to build Anasazi solvers using parameter lists.

Definition at line 71 of file AnasaziFactory.hpp.

Member Function Documentation

template<class ScalarType , class MV , class OP >
static Teuchos::RCP<SolverManager<ScalarType,MV,OP> > Anasazi::Factory::create ( const std::string &  solverType,
const Teuchos::RCP< Eigenproblem< ScalarType, MV, OP > >  problem,
Teuchos::ParameterList pl 
)
inlinestatic

Create an instance of Anasazi::SolverManager given the string name of the solver type.

Parameters
solverType[in] Name of solver type to be created.
problem[in] Anasazi eigenproblem used to define the solver

Throw an exception if the solver with that input name does not exist. Otherwise, return a newly created solver object.

Note
Some of the solver managers cannot be used with std::complex.

Definition at line 88 of file AnasaziFactory.hpp.

template<class ScalarType , class MV , class OP >
static Teuchos::RCP<SolverManager<ScalarType,MV,OP> > Anasazi::Factory::create ( const std::string &  solverType,
const Teuchos::RCP< BasicEigenproblem< ScalarType, MV, OP > > &  problem,
Teuchos::ParameterList pl 
)
inlinestatic

Specialize create for BasicEigenproblem type.

Definition at line 161 of file AnasaziFactory.hpp.


The documentation for this class was generated from the following file: