10 #ifndef THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DECL_HPP
11 #define THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DECL_HPP
14 #include "Thyra_LinearOpWithSolveBase.hpp"
15 #include "Teuchos_ConstNonconstObjectContainer.hpp"
26 template<
class Scalar>
116 template<
class Scalar>
118 defaultAdjointLinearOpWithSolve(
124 dalows->initialize(lows, transp);
133 template<
class Scalar>
134 RCP<DefaultAdjointLinearOpWithSolve<Scalar> >
135 defaultAdjointLinearOpWithSolveNonconst(
136 const RCP<LinearOpWithSolveBase<Scalar> > &lows,
139 RCP<DefaultAdjointLinearOpWithSolve<Scalar> >
140 dalows =
Teuchos::rcp(
new DefaultAdjointLinearOpWithSolve<Scalar>);
141 dalows->initialize(lows, transp);
150 template<
class Scalar>
151 RCP<const LinearOpWithSolveBase<Scalar> >
152 adjointLows(
const RCP<
const LinearOpWithSolveBase<Scalar> > &lows )
154 return defaultAdjointLinearOpWithSolve<Scalar>(lows,
CONJTRANS);
162 template<
class Scalar>
163 RCP<LinearOpWithSolveBase<Scalar> >
164 nonconstAdjointLows(
const RCP<LinearOpWithSolveBase<Scalar> > &lows )
166 return defaultAdjointLinearOpWithSolveNonconst<Scalar>(lows,
CONJTRANS);
174 #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 .