LinearOpWithSolveBase subclass for diagonal linear operators.
More...
#include <Thyra_DefaultDiagonalLinearOpWithSolveDecl.hpp>
Inheritance diagram for Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >:

Constructors/initializers/accessors | |
| DefaultDiagonalLinearOpWithSolve () | |
| Constructs to uninitialized. | |
| DefaultDiagonalLinearOpWithSolve (const Teuchos::RCP< const VectorBase< Scalar > > &diag) | |
Calls initialize(). | |
Overridden from SingleScalarLinearOpWithSolveBase | |
| bool | solveSupportsTrans (EOpTransp M_trans) const |
| | |
| bool | solveSupportsSolveMeasureType (EOpTransp M_trans, const SolveMeasureType &solveMeasureType) const |
| | |
Overridden from SingleRhsLinearOpWithSolveBase | |
| SolveStatus< Scalar > | solve (const EOpTransp M_trans, const VectorBase< Scalar > &b, VectorBase< Scalar > *x, const SolveCriteria< Scalar > *solveCriteria) const |
| | |
LinearOpWithSolveBase subclass for diagonal linear operators.
This class represents a diagonal linear operator M of the form:
M = diag(diag)
where diag is a VectorBase object.
The defined operator implements <tt>this->apply() as follows:
y = alpha*op(M)*x + beta*y => y(i) = alpha*diag(i)*x(i) + beta*y(i), for i = 0 ... n-1
where n = this->domain()->dim().
The defined operator implements <tt>this->solve() as follows:
x = inv(op(M))*b => x(i) = b(i)/diag(i), for i = 0 ... n-1
where n = this->domain()->dim().
That is all there is to this subclass.
|
|||||||||
|
Constructs to uninitialized. Postconditions:
|
|
||||||||||
|
Calls
|
|
||||||||||
|
Implements Thyra::SingleScalarLinearOpWithSolveBase< Scalar >. |
|
||||||||||||||||
|
Implements Thyra::SingleScalarLinearOpWithSolveBase< Scalar >. |
|
||||||||||||||||||||||||
|
Implements Thyra::SingleRhsLinearOpWithSolveBase< Scalar >. |
1.3.9.1