Belos Package Browser (Single Doxygen Collection)
Development
|
Implementation of the RCG (Recycling Conjugate Gradient) iterative linear solver. More...
#include <BelosRCGSolMgr.hpp>
Public Member Functions | |
RCGSolMgr () | |
RCGSolMgr (const Teuchos::RCP< LinearProblem< ScalarType, MV, OP > > &problem, const Teuchos::RCP< Teuchos::ParameterList > &pl) | |
virtual | ~RCGSolMgr () |
Teuchos::RCP< SolverManager < ScalarType, MV, OP > > | clone () const override |
clone for Inverted Injection (DII) More... | |
Private Types | |
typedef Details::SolverManagerRequiresRealLapack < ScalarType, MV, OP, scalarTypeIsSupported > | base_type |
Static Private Attributes | |
static const bool | scalarTypeIsSupported |
Implementation of the RCG (Recycling Conjugate Gradient) iterative linear solver.
This class implements the GCRODR (Recycling GMRES) iterative linear solver. This solver is suited for solving sequences of related linear systems , where each matrix is symmetric positive definite.
This RCG implementation currently only supports real-valued (not complex-valued) ScalarType types. You may check whether ScalarType is complex using the following code:
This is not a limitation of the RCG method itself, just of the current implementation. If there is sufficient interest, we can remedy this deficiency. For now, if you attempt to invoke the constructor when ScalarType
is complex, the constructor will throw an exception. This is why this class inherits from Details::RealSolverManager. RCGSolMgr can still compile if ScalarType
is complex, but you will not be able to construct a RCGSolMgr instance in that case, due to the aforementioned run-time error that the constructor raises. We do this so that the class will still compile, whether ScalarType is real or complex. This helps make SolverFactory valid to compile, whether ScalarType is real or complex.
Definition at line 115 of file BelosRCGSolMgr.hpp.
|
private |
Definition at line 124 of file BelosRCGSolMgr.hpp.
|
inline |
Definition at line 127 of file BelosRCGSolMgr.hpp.
|
inline |
Definition at line 130 of file BelosRCGSolMgr.hpp.
|
inlinevirtual |
Definition at line 134 of file BelosRCGSolMgr.hpp.
|
inlineoverride |
clone for Inverted Injection (DII)
Definition at line 137 of file BelosRCGSolMgr.hpp.
|
staticprivate |
Definition at line 120 of file BelosRCGSolMgr.hpp.