Public Member Functions | |
| PCGSolver (const ParameterList ¶ms, const PreconditionerFactory< double > &precFactory) | |
| SolverState< double > | solve (const LinearOperator< double > &A, const Vector< double > &b, Vector< double > &x) const |
| SolverState< double > | solveUnprec (const LinearOperator< double > &A, const Vector< double > &b, Vector< double > &x) const |
| RCP< LinearSolverBase< double > > | getRcp () |
Private Attributes | |
| PreconditionerFactory< double > | precFactory_ |
Definition at line 53 of file PlayaPCGSolver.hpp.
| Playa::PCGSolver::PCGSolver | ( | const ParameterList & | params, |
| const PreconditionerFactory< double > & | precFactory | ||
| ) | [inline] |
Definition at line 57 of file PlayaPCGSolver.hpp.
| RCP<LinearSolverBase<double> > Playa::PCGSolver::getRcp | ( | ) | [inline, virtual] |
Return a safely-created RefCountPtr to the base type
Implements Playa::Handleable< LinearSolverBase< double > >.
Definition at line 69 of file PlayaPCGSolver.hpp.
| SolverState< double > Playa::PCGSolver::solve | ( | const LinearOperator< double > & | op, |
| const Vector< double > & | rhs, | ||
| Vector< double > & | soln | ||
| ) | const [virtual] |
Implements Playa::LinearSolverBase< double >.
Definition at line 55 of file PlayaPCGSolver.cpp.
References Playa::PreconditionerFactory< Scalar >::createPreconditioner(), Playa::Preconditioner< Scalar >::hasLeft(), Playa::Preconditioner< Scalar >::hasRight(), Playa::Preconditioner< Scalar >::isIdentity(), Playa::Preconditioner< Scalar >::isTwoSided(), Playa::Preconditioner< Scalar >::left(), precFactory_, Playa::Handle< PointerType >::ptr(), Playa::Preconditioner< Scalar >::right(), and solveUnprec().
| SolverState< double > Playa::PCGSolver::solveUnprec | ( | const LinearOperator< double > & | A, |
| const Vector< double > & | b, | ||
| Vector< double > & | x | ||
| ) | const |
Definition at line 106 of file PlayaPCGSolver.cpp.
References Playa::Vector< Scalar >::copy(), Playa::VectorSpace< Scalar >::dim(), Playa::Vector< Scalar >::norm2(), Playa::LinearSolverBase< double >::parameters(), PLAYA_ROOT_MSG1, PLAYA_ROOT_MSG2, Playa::Handle< PointerType >::ptr(), Playa::SolveConverged, Playa::SolveFailedToConverge, Playa::Vector< Scalar >::space(), Playa::SolverState< Scalar >::stateDescription(), and Playa::ObjectWithVerbosity::verb().
Referenced by solve().
PreconditionerFactory<double> Playa::PCGSolver::precFactory_ [private] |
Definition at line 72 of file PlayaPCGSolver.hpp.
Referenced by solve().