43 #ifndef THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DECL_HPP
44 #define THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DECL_HPP
47 #include "Thyra_LinearOpWithSolveBase.hpp"
48 #include "Teuchos_ConstNonconstObjectContainer.hpp"
59 template<
class Scalar>
149 template<
class Scalar>
151 defaultAdjointLinearOpWithSolve(
157 dalows->initialize(lows, transp);
166 template<
class Scalar>
167 RCP<DefaultAdjointLinearOpWithSolve<Scalar> >
168 defaultAdjointLinearOpWithSolveNonconst(
169 const RCP<LinearOpWithSolveBase<Scalar> > &lows,
172 RCP<DefaultAdjointLinearOpWithSolve<Scalar> >
173 dalows =
Teuchos::rcp(
new DefaultAdjointLinearOpWithSolve<Scalar>);
174 dalows->initialize(lows, transp);
183 template<
class Scalar>
184 RCP<const LinearOpWithSolveBase<Scalar> >
185 adjointLows(
const RCP<
const LinearOpWithSolveBase<Scalar> > &lows )
187 return defaultAdjointLinearOpWithSolve<Scalar>(lows,
CONJTRANS);
195 template<
class Scalar>
196 RCP<LinearOpWithSolveBase<Scalar> >
197 nonconstAdjointLows(
const RCP<LinearOpWithSolveBase<Scalar> > &lows )
199 return defaultAdjointLinearOpWithSolveNonconst<Scalar>(lows,
CONJTRANS);
207 #endif // THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DECL_HPP
bool solveSupportsSolveMeasureTypeImpl(EOpTransp M_trans, const SolveMeasureType &solveMeasureType) const
Base class for all linear operators that can support a high-level solve operation.
EOpTransp
Enumeration for determining how a linear operator is applied. `*.
Default concreate decorator subclass for a transpose/adjoint LinearOpWithSolveBase object...
Use the transposed operator with complex-conjugate clements (same as TRANS for real scalar types)...
const RCP< const LinearOpWithSolveBase< Scalar > > getOp() const
Get the const underlying LOWSB object.
RCP< const VectorSpaceBase< Scalar > > range() const
bool opSupportedImpl(EOpTransp M_trans) const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Interface for a collection of column vectors called a multi-vector.
const RCP< LinearOpWithSolveBase< Scalar > > getNonconstOp()
Get the non-const underlying LOWSB object.
SolveStatus< Scalar > solveImpl(const EOpTransp transp, const MultiVectorBase< Scalar > &B, const Ptr< MultiVectorBase< Scalar > > &X, const Ptr< const SolveCriteria< Scalar > > solveCriteria) const
DefaultAdjointLinearOpWithSolve()
Constructs to uninitialized.
Simple struct for the return status from a solve.
RCP< const VectorSpaceBase< Scalar > > domain() const
bool solveSupportsImpl(EOpTransp M_trans) const
Simple struct that defines the requested solution criteria for a solve.
void applyImpl(const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha, const Scalar beta) const
void initialize(const RCP< LinearOpWithSolveBase< Scalar > > &lows, const EOpTransp transp)
Initialize with non-const LOWSB .