|
Thyra Package Browser (Single Doxygen Collection) Version of the Day
|
Concrete LinearOpWithSolveBase subclass for diagonal linear operators.
More...
#include <Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp>

Related Functions | |
(Note that these are not member functions.) | |
| template<class Scalar > | |
| RCP < DefaultDiagonalLinearOpWithSolve < Scalar > > | defaultDiagonalLinearOpWithSolve () |
| Nonmember constructor. | |
| template<class Scalar > | |
| RCP < DefaultDiagonalLinearOpWithSolve < Scalar > > | defaultDiagonalLinearOpWithSolve (const RCP< const VectorBase< Scalar > > &diag) |
| Nonmember constructor. | |
Constructors/initializers/accessors | |
| DefaultDiagonalLinearOpWithSolve () | |
| Constructs to uninitialized. | |
| DefaultDiagonalLinearOpWithSolve (const RCP< const VectorBase< Scalar > > &diag) | |
Calls initialize() | |
Overridden from LinearOpWithSolveBase | |
| bool | solveSupportsImpl (EOpTransp M_trans) const |
| | |
| bool | solveSupportsSolveMeasureTypeImpl (EOpTransp M_trans, const SolveMeasureType &solveMeasureType) const |
| | |
| SolveStatus< Scalar > | solveImpl (const EOpTransp transp, const MultiVectorBase< Scalar > &B, const Ptr< MultiVectorBase< Scalar > > &X, const Ptr< const SolveCriteria< Scalar > > solveCriteria) const |
| | |
Concrete 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 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 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.
Definition at line 79 of file Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp.
| Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >::DefaultDiagonalLinearOpWithSolve | ( | ) |
Constructs to uninitialized.
Postconditions:
this->getDiag().get()==NULL Definition at line 47 of file Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp.
| Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >::DefaultDiagonalLinearOpWithSolve | ( | const RCP< const VectorBase< Scalar > > & | diag | ) |
Calls initialize()
Definition at line 52 of file Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp.
| bool Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >::solveSupportsImpl | ( | EOpTransp | M_trans | ) | const [protected, virtual] |
Reimplemented from Thyra::LinearOpWithSolveBase< Scalar >.
Definition at line 68 of file Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp.
References Thyra::NOTRANS, and Thyra::TRANS.
| bool Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >::solveSupportsSolveMeasureTypeImpl | ( | EOpTransp | M_trans, |
| const SolveMeasureType & | solveMeasureType | ||
| ) | const [protected, virtual] |
Reimplemented from Thyra::LinearOpWithSolveBase< Scalar >.
Definition at line 78 of file Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp.
| SolveStatus< Scalar > Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >::solveImpl | ( | const EOpTransp | transp, |
| const MultiVectorBase< Scalar > & | B, | ||
| const Ptr< MultiVectorBase< Scalar > > & | X, | ||
| const Ptr< const SolveCriteria< Scalar > > | solveCriteria | ||
| ) | const [protected, virtual] |
Implements Thyra::LinearOpWithSolveBase< Scalar >.
Definition at line 87 of file Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp.
References Thyra::SolveStatus< Scalar >::achievedTol, Thyra::assign(), Thyra::MultiVectorBase< Scalar >::col(), Thyra::LinearOpBase< Scalar >::domain(), Thyra::ele_wise_divide(), Thyra::SOLVE_STATUS_CONVERGED, Thyra::SOLVE_STATUS_UNKNOWN, Thyra::SolveStatus< Scalar >::solveStatus, and Thyra::SolveStatus< Scalar >::unknownTolerance().
| RCP< DefaultDiagonalLinearOpWithSolve< Scalar > > defaultDiagonalLinearOpWithSolve | ( | ) | [related] |
Nonmember constructor.
Definition at line 128 of file Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp.
| RCP< DefaultDiagonalLinearOpWithSolve< Scalar > > defaultDiagonalLinearOpWithSolve | ( | const RCP< const VectorBase< Scalar > > & | diag | ) | [related] |
Nonmember constructor.
Definition at line 140 of file Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp.
1.7.4