#include <PlayaPreconditionerFactory.hpp>
Public Member Functions | |
PreconditionerFactory () | |
PreconditionerFactory (Playa::Handleable< PreconditionerFactoryBase< Scalar > > *rawPtr) | |
PreconditionerFactory (const Teuchos::RCP< PreconditionerFactoryBase< Scalar > > &smartPtr) | |
Preconditioner< Scalar > | createPreconditioner (const LinearOperator< Scalar > &A) const |
Preconditioners are constructed indirectly through factories rather then directly by preconditioner ctor calls. The reason for this is that when we create a solver and want to specify the preconditioner, we don't yet know the matrix (or even the type or size of matrix) on which the solver is going to operate. Thus we have to defer construction of the preconditioner until the solve() call when the matrix is available. The factory gives us a means by which we can build a preconditioner at that point.
Definition at line 28 of file PlayaPreconditionerFactory.hpp.
Playa::PreconditionerFactory< Scalar >::PreconditionerFactory | ( | ) | [inline] |
Empty ctor
Playa::PreconditionerFactory< Scalar >::PreconditionerFactory | ( | Playa::Handleable< PreconditionerFactoryBase< Scalar > > * | rawPtr | ) | [inline] |
Construct a # PreconditionerFactory<Scalar> with a raw pointer to a # PreconditionerFactoryBase<Scalar>
Playa::PreconditionerFactory< Scalar >::PreconditionerFactory | ( | const Teuchos::RCP< PreconditionerFactoryBase< Scalar > > & | smartPtr | ) | [inline] |
Construct a # PreconditionerFactory<Scalar> with a smart pointer to a # PreconditionerFactoryBase<Scalar>
Preconditioner<Scalar> Playa::PreconditionerFactory< Scalar >::createPreconditioner | ( | const LinearOperator< Scalar > & | A | ) | const [inline] |
create a concrete preconditioner
Definition at line 36 of file PlayaPreconditionerFactory.hpp.