42 #include "Thyra_EpetraOperatorViewExtractorStd.hpp" 43 #include "Thyra_EpetraLinearOpBase.hpp" 44 #include "Thyra_ScaledAdjointLinearOpBase.hpp" 57 double wrappedScalar = 0.0;
72 const Ptr<RCP<Epetra_Operator> > &epetraOp,
73 const Ptr<EOpTransp> &epetraOpTransp,
74 const Ptr<EApplyEpetraOpAs> &epetraOpApplyAs,
75 const Ptr<EAdjointEpetraOp> &epetraOpAdjointSupport,
76 const Ptr<double> &epetraOpScalar
79 TEUCHOS_TEST_FOR_EXCEPT(
true);
87 const Ptr<RCP<const Epetra_Operator> > &epetraOp,
88 const Ptr<EOpTransp> &epetraOpTransp,
89 const Ptr<EApplyEpetraOpAs> &epetraOpApplyAs,
90 const Ptr<EAdjointEpetraOp> &epetraOpAdjointSupport,
91 const Ptr<double> &epetraOpScalar
94 using Teuchos::outArg;
95 double wrappedFwdOpScalar = 0.0;
97 Teuchos::RCP<const LinearOpBase<double> > wrappedFwdOp;
98 unwrap(fwdOp,&wrappedFwdOpScalar, &wrappedFwdOpTransp, &wrappedFwdOp);
99 Teuchos::RCP<const EpetraLinearOpBase> epetraFwdOp =
103 epetraOpApplyAs, epetraOpAdjointSupport);
105 *epetraOpScalar = wrappedFwdOpScalar;
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.
Abstract base class for all LinearOpBase objects that can return an Epetra_Operator view of themselve...
EOpTransp real_trans(EOpTransp transp)
Return NOTRANS or TRANS for real scalar valued operators and this also is used for determining struct...
virtual void getEpetraOpView(const Ptr< RCP< const Epetra_Operator > > &epetraOp, const Ptr< EOpTransp > &epetraOpTransp, const Ptr< EApplyEpetraOpAs > &epetraOpApplyAs, const Ptr< EAdjointEpetraOp > &epetraOpAdjointSupport) const =0
Return a smart pointer to a const Epetra_Operator view of this object and how the object is applied t...
EOpTransp trans_trans(EOpTransp trans1, EOpTransp trans2)
Combine two transpose arguments.