47 #include "Teko_ImplicitLinearOp.hpp"
51 using Teuchos::rcpFromRef;
52 using Teuchos::rcp_dynamic_cast;
53 using Teuchos::rcp_const_cast;
56 using Thyra::MultiVectorBase;
60 return (M_trans == Thyra::NOTRANS);
63 void ImplicitLinearOp::applyImpl(
const Thyra::EOpTransp M_trans,
const Thyra::MultiVectorBase<double> & x,
64 const Teuchos::Ptr<Thyra::MultiVectorBase<double> > & y,
65 const double alpha,
const double beta)
const
67 TEUCHOS_TEST_FOR_EXCEPTION(M_trans!=Thyra::NOTRANS,std::runtime_error,
68 "Linear operators of inherited type Teko::ImplicitLinearOp "
69 "cannot handle conjugation (yet!)");
71 MultiVector srcX = rcp_const_cast<MultiVectorBase<double> >(rcpFromRef(x));
72 MultiVector destY = rcp_dynamic_cast<MultiVectorBase<double> >(rcpFromRef(*y));
virtual bool opSupportedImpl(const Thyra::EOpTransp M_trans) const
Functions required by Thyra::LinearOpBase.
virtual void implicitApply(const MultiVector &x, MultiVector &y, const double alpha=1.0, const double beta=0.0) const =0
Perform a matrix vector multiply with this implicitly defined blocked operator.