10 #ifndef THYRA_SCALED_ADJOINT_LINEAR_OP_BASE_HPP
11 #define THYRA_SCALED_ADJOINT_LINEAR_OP_BASE_HPP
13 #include "Thyra_ScaledAdjointLinearOpBase_decl.hpp"
14 #include "Thyra_LinearOpBase.hpp"
17 template<
class Scalar>
46 template<
class Scalar>
48 const RCP<
const LinearOpBase<Scalar> > &Op,
51 RCP<
const LinearOpBase<Scalar> > *origOp
60 RCP<const ScaledAdjointLinearOpBase<Scalar> >
61 saOp = Teuchos::rcp_dynamic_cast<
const ScaledAdjointLinearOpBase<Scalar> >(Op);
63 *scalar = saOp->overallScalar();
64 *transp = saOp->overallTransp();
65 *origOp = saOp->getOrigOp();
79 #define THYRA_SCALED_ADJOINT_LINEAR_OP_BASE_INSTANT(SCALAR) \
81 template void unwrap( \
82 const LinearOpBase<SCALAR > &Op, \
85 const LinearOpBase<SCALAR >* *origOp \
88 template void unwrap( \
89 const RCP<const LinearOpBase<SCALAR > > &Op, \
92 RCP<const LinearOpBase<SCALAR > > *origOp \
96 #endif // THYRA_SCALED_ADJOINT_LINEAR_OP_BASE_HPP
EOpTransp
Enumeration for determining how a linear operator is applied. `*.
void unwrap(const LinearOpBase< Scalar > &Op, Scalar *scalar, EOpTransp *transp, const LinearOpBase< Scalar > **origOp)
Extract the overallScalar, overallTransp and const origOp from a const LinearOpBase object...
Use the non-transposed operator.
Base class for LinearOpBase decorator subclasses that wrap a LinearOpBase object and adds on an extra...
virtual EOpTransp overallTransp() const =0
Return the overall transpose (adjoint) enum.
Base class for all linear operators.
virtual Scalar overallScalar() const =0
Return the overall scale factor.
virtual RCP< const LinearOpBase< Scalar > > getOrigOp() const =0
Return the const original linear operator origOp.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)