SimplifiedLinearOpBase provides a simplified apply() interface in terms of handle classes. More...
Public Member Functions | |
| virtual void | applyOp (const Thyra::EOpTransp M_trans, const Vector< Scalar > &in, Vector< Scalar > out) const =0 |
| void | generalApply (const Thyra::EOpTransp M_trans, const Thyra::VectorBase< Scalar > &x, Thyra::VectorBase< Scalar > *y, const Scalar alpha=Teuchos::ScalarTraits< Scalar >::one(), const Scalar beta=Teuchos::ScalarTraits< Scalar >::zero()) const |
| generalApply() applies either the operator or the transpose according to the value of the transpose flag. | |
SimplifiedLinearOpBase provides a simplified apply() interface in terms of handle classes.
Writers of operator subtypes can optionally use this interface to be able to work with handle classes rather than raw pointers and such.
Definition at line 52 of file TSFSimplifiedLinearOpBaseDecl.hpp.
| virtual void TSFExtended::SimplifiedLinearOpBase< Scalar >::applyOp | ( | const Thyra::EOpTransp | M_trans, |
| const Vector< Scalar > & | in, | ||
| Vector< Scalar > | out | ||
| ) | const [pure virtual] |
Implemented in TSFExtended::DenseSerialMatrix, TSFExtended::InverseLTIOp< Scalar >, TSFExtended::SimpleAddedOp< Scalar >, TSFExtended::SimpleBlockOp< Scalar >, TSFExtended::SimpleComposedOp< Scalar >, TSFExtended::SimpleDiagonalOp< Scalar >, TSFExtended::SimpleIdentityOp< Scalar >, TSFExtended::SimpleScaledOp< Scalar >, TSFExtended::SimpleTransposedOp< Scalar >, and TSFExtended::SimpleZeroOp< Scalar >.
| void TSFExtended::SimplifiedLinearOpBase< Scalar >::generalApply | ( | const Thyra::EOpTransp | M_trans, |
| const Thyra::VectorBase< Scalar > & | x, | ||
| Thyra::VectorBase< Scalar > * | y, | ||
| const Scalar | alpha = Teuchos::ScalarTraits<Scalar>::one(), |
||
| const Scalar | beta = Teuchos::ScalarTraits<Scalar>::zero() |
||
| ) | const [virtual] |
generalApply() applies either the operator or the transpose according to the value of the transpose flag.
This method is backwards compatible with TSFCore-based code.
Implements TSFExtended::OpWithBackwardsCompatibleApply< Scalar >.
Definition at line 47 of file TSFSimplifiedLinearOpBaseImpl.hpp.
References TSFExtended::Vector< Scalar >::scale(), and TSFExtended::Vector< Scalar >::update().