42 #ifndef THYRA_PRECONDITIONER_FACTORY_BASE_DECL_HPP
43 #define THYRA_PRECONDITIONER_FACTORY_BASE_DECL_HPP
45 #include "Thyra_PreconditionerBase.hpp"
46 #include "Thyra_LinearOpSourceBase.hpp"
47 #include "Teuchos_Describable.hpp"
48 #include "Teuchos_ParameterListAcceptor.hpp"
49 #include "Teuchos_VerboseObject.hpp"
62 template<
class Scalar>
63 class PreconditionerFactoryBase
76 virtual bool isCompatible(
const LinearOpSourceBase<Scalar> &fwdOpSrc)
const = 0;
87 virtual RCP<PreconditionerBase<Scalar> >
createPrec()
const = 0;
160 const RCP<
const LinearOpSourceBase<Scalar> > &fwdOpSrc,
161 PreconditionerBase<Scalar> *precOp,
214 PreconditionerBase<Scalar> *
prec,
215 RCP<
const LinearOpSourceBase<Scalar> > *fwdOpSrc = NULL,
244 PreconditionerFactoryBase<Scalar>&
245 operator=(
const PreconditionerFactoryBase<Scalar>&);
253 #endif // THYRA_PRECONDITIONER_FACTORY_BASE_DECL_HPP
How the output LOWSB object will be useded for solves in unspecified.
virtual void uninitializePrec(PreconditionerBase< Scalar > *prec, RCP< const LinearOpSourceBase< Scalar > > *fwdOpSrc=NULL, ESupportSolveUse *supportSolveUse=NULL) const =0
Uninitialize a LinearOpBase preconditioner object and return its remembered forward linear operator...
virtual RCP< PreconditionerBase< Scalar > > createPrec() const =0
Create an (uninitialized) LinearOpBase object to be initialized as the preconditioner later in this->...
Teuchos::RCP< PreconditionerBase< Scalar > > prec(const PreconditionerFactoryBase< Scalar > &precFactory, const Teuchos::RCP< const LinearOpBase< Scalar > > &fwdOp, const ESupportSolveUse supportSolveUse=SUPPORT_SOLVE_UNSPECIFIED)
Create and initialize a preconditioner from a forward linear operator.
virtual bool applyTransposeSupportsConj(EConj conj) const
Return if precOp->solveTranspose() supports the argument conj.
virtual bool applySupportsConj(EConj conj) const
Return if precOp->apply() supports the argument conj.
virtual void initializePrec(const RCP< const LinearOpSourceBase< Scalar > > &fwdOpSrc, PreconditionerBase< Scalar > *precOp, const ESupportSolveUse supportSolveUse=SUPPORT_SOLVE_UNSPECIFIED) const =0
Initialize a pre-created LinearOpBase preconditioner object given a "compatible" LinearOpBase object...
ESupportSolveUse
Enum that specifies how a LinearOpWithSolveBase object will be used for solves after it is constructe...
EConj
Enumeration for determining how a linear operator is applied. `*.
virtual bool isCompatible(const LinearOpSourceBase< Scalar > &fwdOpSrc) const =0
Check that a LinearOpBase object is compatible with *this factory object.