10 #include "Teko_ImplicitLinearOp.hpp"
15 using Teuchos::rcp_const_cast;
16 using Teuchos::rcp_dynamic_cast;
17 using Teuchos::rcpFromRef;
19 using Thyra::MultiVectorBase;
22 return (M_trans == Thyra::NOTRANS);
25 void ImplicitLinearOp::applyImpl(
const Thyra::EOpTransp M_trans,
26 const Thyra::MultiVectorBase<double>& x,
27 const Teuchos::Ptr<Thyra::MultiVectorBase<double> >& y,
28 const double alpha,
const double beta)
const {
29 TEUCHOS_TEST_FOR_EXCEPTION(M_trans != Thyra::NOTRANS, std::runtime_error,
30 "Linear operators of inherited type Teko::ImplicitLinearOp "
31 "cannot handle conjugation (yet!)");
33 MultiVector srcX = rcp_const_cast<MultiVectorBase<double> >(rcpFromRef(x));
34 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.