Public Member Functions
Playa::Preconditioner< Scalar > Class Template Reference

Preconditioner stores left and/or right operators for use in preconditioning. More...

Inheritance diagram for Playa::Preconditioner< Scalar >:
Playa::Handle< PreconditionerBase< Scalar > >

List of all members.

Public Member Functions

 Preconditioner ()
 Preconditioner (Handleable< PreconditionerBase< Scalar > > *rawPtr)
 Preconditioner (const RefCountPtr< PreconditionerBase< Scalar > > &smartPtr)
void changeParameter (const std::string &name, const double &value)
void changeParameter (const std::string &name, int value)
LinearOperator< Scalar > left () const
LinearOperator< Scalar > right () const
bool isTwoSided () const
bool hasLeft () const
bool hasRight () const
bool isIdentity () const

Detailed Description

template<class Scalar>
class Playa::Preconditioner< Scalar >

Preconditioner stores left and/or right operators for use in preconditioning.

Definition at line 56 of file PlayaPreconditioner.hpp.


Constructor & Destructor Documentation

template<class Scalar>
Playa::Preconditioner< Scalar >::Preconditioner ( ) [inline]

Empty ctor

Definition at line 60 of file PlayaPreconditioner.hpp.

template<class Scalar>
Playa::Preconditioner< Scalar >::Preconditioner ( Handleable< PreconditionerBase< Scalar > > *  rawPtr) [inline]

Construct a Preconditioner with a raw pointer to a PreconditionerBase<Scalar>

Definition at line 60 of file PlayaPreconditioner.hpp.

template<class Scalar>
Playa::Preconditioner< Scalar >::Preconditioner ( const RefCountPtr< PreconditionerBase< Scalar > > &  smartPtr) [inline]

Construct a Preconditioner with a smart pointer to a PreconditionerBase<Scalar>

Definition at line 60 of file PlayaPreconditioner.hpp.


Member Function Documentation

template<class Scalar>
void Playa::Preconditioner< Scalar >::changeParameter ( const std::string &  name,
const double &  value 
)

Change the value of a double parameter

template<class Scalar>
void Playa::Preconditioner< Scalar >::changeParameter ( const std::string &  name,
int  value 
)

Change the value of an integer parameter

template<class Scalar >
bool Playa::Preconditioner< Scalar >::hasLeft ( ) const [inline]
template<class Scalar >
bool Playa::Preconditioner< Scalar >::hasRight ( ) const [inline]
template<class Scalar>
bool Playa::Preconditioner< Scalar >::isIdentity ( ) const [inline]

return true if this preconditioner has neither left nor right operators defined

Definition at line 89 of file PlayaPreconditioner.hpp.

References Playa::Preconditioner< Scalar >::hasLeft(), and Playa::Preconditioner< Scalar >::hasRight().

Referenced by Playa::PCGSolver::solve().

template<class Scalar>
bool Playa::Preconditioner< Scalar >::isTwoSided ( ) const [inline]

return true if this preconditioner has both left and right components.

Definition at line 78 of file PlayaPreconditioner.hpp.

References Playa::Preconditioner< Scalar >::hasLeft(), and Playa::Preconditioner< Scalar >::hasRight().

Referenced by Playa::PCGSolver::solve().

template<class Scalar >
LinearOperator< Scalar > Playa::Preconditioner< Scalar >::left ( ) const [inline]
template<class Scalar >
LinearOperator< Scalar > Playa::Preconditioner< Scalar >::right ( ) const [inline]

Site Contact