47 #include "Teko_BlockImplicitLinearOp.hpp"
51 using Teuchos::rcpFromRef;
52 using Teuchos::rcp_dynamic_cast;
53 using Teuchos::rcp_const_cast;
56 using Thyra::ProductMultiVectorBase;
61 const BlockedMultiVector & x, BlockedMultiVector & y,
62 const double alpha,
const double beta)
const
64 TEUCHOS_TEST_FOR_EXCEPTION(M_trans!=Thyra::NOTRANS, std::runtime_error,
65 "Linear operators of inherited type BlockImplicitLinearOp "
66 "cannot handle conjugation (yet!)");
74 return (M_trans == Thyra::NOTRANS);
77 void BlockImplicitLinearOp::applyImpl(
78 const Thyra::EOpTransp M_trans,
79 const Thyra::MultiVectorBase<double> & x,
80 const Teuchos::Ptr<Thyra::MultiVectorBase<double> > & y,
86 RCP<const ProductMultiVectorBase<double> > src =
87 rcp_dynamic_cast<
const ProductMultiVectorBase<double> >(rcpFromRef(x));
88 BlockedMultiVector srcX = rcp_const_cast<ProductMultiVectorBase<double> >(src);
91 BlockedMultiVector destY =
92 rcp_dynamic_cast<ProductMultiVectorBase<double> >(rcpFromPtr(y));
virtual void implicitApply(const BlockedMultiVector &x, BlockedMultiVector &y, const double alpha=1.0, const double beta=0.0) const =0
Perform a matrix vector multiply with this implicitly defined blocked operator.
virtual bool opSupportedImpl(const Thyra::EOpTransp M_trans) const
Functions required by Thyra::LinearOpBase.