Thyra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Related Functions | List of all members
Thyra::DefaultDiagonalLinearOpWithSolve< Scalar > Class Template Reference

Concrete LinearOpWithSolveBase subclass for diagonal linear operators. More...

#include <Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp>

Inheritance diagram for Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >:
Inheritance graph
[legend]

Related Functions

(Note that these are not member functions.)

template<class Scalar >
RCP
< DefaultDiagonalLinearOpWithSolve
< Scalar > > 
defaultDiagonalLinearOpWithSolve ()
 Nonmember constructor. More...
 
template<class Scalar >
RCP
< DefaultDiagonalLinearOpWithSolve
< Scalar > > 
defaultDiagonalLinearOpWithSolve (const RCP< const VectorBase< Scalar > > &diag)
 Nonmember constructor. More...
 

Constructors/initializers/accessors

 DefaultDiagonalLinearOpWithSolve ()
 Constructs to uninitialized. More...
 
 DefaultDiagonalLinearOpWithSolve (const RCP< const VectorBase< Scalar > > &diag)
 Calls initialize() More...
 

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
 

Detailed Description

template<class Scalar>
class Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >

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 60 of file Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp.

Constructor & Destructor Documentation

Constructs to uninitialized.

Postconditions:

Definition at line 28 of file Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp.

template<class Scalar >
Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >::DefaultDiagonalLinearOpWithSolve ( const RCP< const VectorBase< Scalar > > &  diag)

Member Function Documentation

template<class Scalar >
bool Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >::solveSupportsImpl ( EOpTransp  M_trans) const
protectedvirtual
template<class Scalar >
bool Thyra::DefaultDiagonalLinearOpWithSolve< Scalar >::solveSupportsSolveMeasureTypeImpl ( EOpTransp  M_trans,
const SolveMeasureType solveMeasureType 
) const
protectedvirtual
template<class Scalar >
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
protectedvirtual

Friends And Related Function Documentation

template<class Scalar >
RCP< DefaultDiagonalLinearOpWithSolve< Scalar > > defaultDiagonalLinearOpWithSolve ( )
related

Nonmember constructor.

Definition at line 109 of file Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp.

template<class Scalar >
RCP< DefaultDiagonalLinearOpWithSolve< Scalar > > defaultDiagonalLinearOpWithSolve ( const RCP< const VectorBase< Scalar > > &  diag)
related

Nonmember constructor.

Definition at line 121 of file Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp.


The documentation for this class was generated from the following files: