Classes | |
class | AdditionalData |
Public Member Functions | |
void | initialize (const MATRIX &A, AdditionalData parameters=AdditionalData()) |
void | clear () |
Protected Attributes | |
SmartPointer< const MATRIX > | A |
double | relaxation |
Base class for other preconditioners. Here, only some common features Jacobi, SOR and SSOR preconditioners are implemented. For preconditioning, refer to derived classes.
void PreconditionRelaxation< MATRIX >::initialize | ( | const MATRIX & | A, | |
AdditionalData | parameters = AdditionalData() | |||
) |
Initialize matrix and relaxation parameter. The matrix is just stored in the preconditioner object. The relaxation parameter should be larger than zero and smaller than 2 for numerical reasons. It defaults to 1.
Reimplemented in PreconditionSSOR< MATRIX >.
void PreconditionRelaxation< MATRIX >::clear | ( | ) |
Release the matrix and reset its pointer.
SmartPointer<const MATRIX> PreconditionRelaxation< MATRIX >::A [protected] |
Pointer to the matrix object.
double PreconditionRelaxation< MATRIX >::relaxation [protected] |
Relaxation parameter.