10 #ifndef THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DEF_HPP
11 #define THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DEF_HPP
14 #include "Thyra_DefaultAdjointLinearOpWithSolve_decl.hpp"
15 #include "Thyra_LinearOpWithSolveBase.hpp"
24 template<
class Scalar>
30 template<
class Scalar>
40 template<
class Scalar>
50 template<
class Scalar>
54 return lows_.getNonconstObj();
58 template<
class Scalar>
62 return lows_.getConstObj();
69 template<
class Scalar>
74 ? lows_()->range() : lows_()->domain() );
78 template<
class Scalar>
83 ? lows_()->domain() : lows_()->range() );
93 template<
class Scalar>
97 return Thyra::opSupported(*lows_(),
trans_trans(transp_, M_trans));
101 template<
class Scalar>
110 Thyra::apply( *lows_(),
trans_trans(transp_, M_trans),
118 template<
class Scalar>
121 return Thyra::solveSupports(*lows_(),
trans_trans(transp_, M_trans));
125 template<
class Scalar>
129 return Thyra::solveSupportsSolveMeasureType(*lows_(),
135 template<
class Scalar>
144 return Thyra::solve( *lows_(),
trans_trans(transp_, transp),
145 B, X, solveCriteria );
152 #endif // THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DEF_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. `*.
Use the non-transposed operator.
EOpTransp real_trans(EOpTransp transp)
Return NOTRANS or TRANS for real scalar valued operators and this also is used for determining struct...
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
Interface for a collection of column vectors called a multi-vector.
const RCP< LinearOpWithSolveBase< Scalar > > getNonconstOp()
Get the non-const underlying LOWSB object.
EOpTransp trans_trans(EOpTransp trans1, EOpTransp trans2)
Combine two transpose arguments.
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 .