43 #ifndef THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DEF_HPP
44 #define THYRA_DEFAULT_ADJOINT_LINEAR_OP_WITH_SOLVE_DEF_HPP
47 #include "Thyra_DefaultAdjointLinearOpWithSolve_decl.hpp"
48 #include "Thyra_LinearOpWithSolveBase.hpp"
57 template<
class Scalar>
63 template<
class Scalar>
73 template<
class Scalar>
83 template<
class Scalar>
87 return lows_.getNonconstObj();
91 template<
class Scalar>
95 return lows_.getConstObj();
102 template<
class Scalar>
107 ? lows_()->range() : lows_()->domain() );
111 template<
class Scalar>
116 ? lows_()->domain() : lows_()->range() );
126 template<
class Scalar>
130 return Thyra::opSupported(*lows_(),
trans_trans(transp_, M_trans));
134 template<
class Scalar>
143 Thyra::apply( *lows_(),
trans_trans(transp_, M_trans),
151 template<
class Scalar>
154 return Thyra::solveSupports(*lows_(),
trans_trans(transp_, M_trans));
158 template<
class Scalar>
162 return Thyra::solveSupportsSolveMeasureType(*lows_(),
168 template<
class Scalar>
177 return Thyra::solve( *lows_(),
trans_trans(transp_, transp),
178 B, X, solveCriteria );
185 #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 .