Belos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Types | Static Private Attributes | List of all members
Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType > Class Template Reference

Implementation of the RCG (Recycling Conjugate Gradient) iterative linear solver. More...

#include <BelosRCGSolMgr.hpp>

Inheritance diagram for Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType >:
Inheritance graph
[legend]

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
 

Detailed Description

template<class ScalarType, class MV, class OP, const bool supportsScalarType = Belos::Details::LapackSupportsScalar<ScalarType>::value && ! Teuchos::ScalarTraits<ScalarType>::isComplex>
class Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType >

Implementation of the RCG (Recycling Conjugate Gradient) iterative linear solver.

Author
Michael Parks and Heidi Thornquist

Summary

This class implements the GCRODR (Recycling GMRES) iterative linear solver. This solver is suited for solving sequences of related linear systems $A_i x_i = b_i$, where each matrix $A_i$ is symmetric positive definite.

ScalarType must be real

This RCG implementation currently only supports real-valued (not complex-valued) ScalarType types. You may check whether ScalarType is complex using the following code:

// ScalarType is complex valued.
} else {
// ScalarType is real valued.
}

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 151 of file BelosRCGSolMgr.hpp.

Member Typedef Documentation

template<class ScalarType , class MV , class OP , const bool supportsScalarType = Belos::Details::LapackSupportsScalar<ScalarType>::value && ! Teuchos::ScalarTraits<ScalarType>::isComplex>
typedef Details::SolverManagerRequiresRealLapack<ScalarType, MV, OP, scalarTypeIsSupported> Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType >::base_type
private

Definition at line 160 of file BelosRCGSolMgr.hpp.

Constructor & Destructor Documentation

template<class ScalarType , class MV , class OP , const bool supportsScalarType = Belos::Details::LapackSupportsScalar<ScalarType>::value && ! Teuchos::ScalarTraits<ScalarType>::isComplex>
Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType >::RCGSolMgr ( )
inline

Definition at line 163 of file BelosRCGSolMgr.hpp.

template<class ScalarType , class MV , class OP , const bool supportsScalarType = Belos::Details::LapackSupportsScalar<ScalarType>::value && ! Teuchos::ScalarTraits<ScalarType>::isComplex>
Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType >::RCGSolMgr ( const Teuchos::RCP< LinearProblem< ScalarType, MV, OP > > &  problem,
const Teuchos::RCP< Teuchos::ParameterList > &  pl 
)
inline

Definition at line 166 of file BelosRCGSolMgr.hpp.

template<class ScalarType , class MV , class OP , const bool supportsScalarType = Belos::Details::LapackSupportsScalar<ScalarType>::value && ! Teuchos::ScalarTraits<ScalarType>::isComplex>
virtual Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType >::~RCGSolMgr ( )
inlinevirtual

Definition at line 170 of file BelosRCGSolMgr.hpp.

Member Function Documentation

template<class ScalarType , class MV , class OP , const bool supportsScalarType = Belos::Details::LapackSupportsScalar<ScalarType>::value && ! Teuchos::ScalarTraits<ScalarType>::isComplex>
Teuchos::RCP<SolverManager<ScalarType, MV, OP> > Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType >::clone ( ) const
inlineoverride

clone for Inverted Injection (DII)

Definition at line 173 of file BelosRCGSolMgr.hpp.

Member Data Documentation

template<class ScalarType , class MV , class OP , const bool supportsScalarType = Belos::Details::LapackSupportsScalar<ScalarType>::value && ! Teuchos::ScalarTraits<ScalarType>::isComplex>
const bool Belos::RCGSolMgr< ScalarType, MV, OP, supportsScalarType >::scalarTypeIsSupported
staticprivate

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