10 #ifndef __Teko_BlockUpperTriInverseOp_hpp__
11 #define __Teko_BlockUpperTriInverseOp_hpp__
14 #include "Teko_BlockImplicitLinearOp.hpp"
60 virtual void implicitApply(
const BlockedMultiVector &x, BlockedMultiVector &y,
61 const double alpha = 1.0,
const double beta = 0.0)
const;
76 virtual void implicitApply(
const Thyra::EOpTransp M_trans,
const BlockedMultiVector &x,
77 BlockedMultiVector &y,
const double alpha = 1.0,
78 const double beta = 0.0)
const;
81 virtual void describe(Teuchos::FancyOStream &out_arg,
82 const Teuchos::EVerbosityLevel verbLevel)
const;
86 const BlockedLinearOp
U_;
89 Teuchos::RCP<const Thyra::ProductVectorSpaceBase<double> >
91 Teuchos::RCP<const Thyra::ProductVectorSpaceBase<double> >
95 mutable BlockedMultiVector srcScrap_;
96 mutable BlockedMultiVector dstScrap_;
97 mutable bool allocated =
false;
105 inline LinearOp createBlockUpperTriInverseOp(BlockedLinearOp &U,
106 const std::vector<LinearOp> &invDiag) {
110 inline LinearOp createBlockUpperTriInverseOp(BlockedLinearOp &U,
111 const std::vector<LinearOp> &invDiag,
112 const std::string &str) {
113 Teuchos::RCP<Thyra::LinearOpBase<double> > result =
114 Teuchos::rcp(
new BlockUpperTriInverseOp(U, invDiag));
115 result->setObjectLabel(str);
virtual VectorSpace domain() const
Domain space of this operator.
std::vector< LinearOp > invDiag_
(Approximate) Inverses of the diagonal operators
virtual VectorSpace range() const
Range space of this operator.
Teuchos::RCP< const Thyra::ProductVectorSpaceBase< double > > productRange_
Range vector space.
virtual void implicitApply(const BlockedMultiVector &x, BlockedMultiVector &y, const double alpha=1.0, const double beta=0.0) const
Perform a matrix vector multiply with this operator.
const BlockedLinearOp U_
operator
A virtual class that simplifies the construction of custom operators.
Teuchos::RCP< const Thyra::ProductVectorSpaceBase< double > > productDomain_
Domain vector space.
This linear operator computes the inverse of a upper triangular matrix.