#include <PrecProcedure.h>
Inheritance diagram for PrecProcedure::

Public Methods | |
| virtual | ~PrecProcedure () |
| virtual bool | redim (const LinEqVector &x) |
| virtual void | init (PrecBasis &Apb) |
| virtual bool | ok () const |
| virtual void | apply (const LinEqVector &, LinEqVector &, TransposeMode=NOT_TRANSPOSED) |
| virtual real | getStorage () const |
Protected Methods | |
| PrecProcedure (const Precond_prm &p) | |
Protected Attributes | |
| Handle(LinEqVector) | scratch2 |
NAME: PrecProcedure - base class for non-algebraic preconditioners for linear systems
DESCRIPTION:
The base class describes an interface for preconditioning operations defined in terms of a procedure rather than a preconditioning matrix.
|
|
The only constructor accepts a "Precond_prm" object containing the preconditioning parameters. Note that this constructor is accessible only to derived classes. |
|
|
|
|
|
computes the result of applying the current preconditoner to a "LinEqVector" object "c". The result is returned in "d". Depending on the "TransposeMode" parameter, the preconditoner can be used as is (default) or as transposed/conjugate transposed operator. Reimplemented from Precond. Reimplemented in PrecUserDefProc. |
|
|
returns the amount of storage needed for the current preconditioner. Reimplemented from Precond. |
|
|
initializes the preconditioner, e.g. by computing an incomplete factorization. The function "init" should perform internal redimensioning if necessary. For algebraic preconditioners where C is based directly on A with the same sparsity pattern, C should be redimensioned by a "C.redim(A)" statement like we have for "LinEqVector" objects. The "Matrix"-heriarchy must then have a virtual makeItSimilar function (see "Vector"). Reimplemented from Precond. |
|
|
returns "true" if the preconditioner is in normal state, otherwise it returns "false". Reimplemented from Precond. Reimplemented in PrecUserDefProc. |
|
|
redimensions the current preconditioner to match the supplied "LinEqVector" object. Reimplemented from Precond. |
|
|
|