Package no.uib.cipr.matrix.sparse
Interface Preconditioner
- All Known Implementing Classes:
AMG
,BlockDiagonalPreconditioner
,DiagonalPreconditioner
,ICC
,ILU
,ILUT
,SSOR
,TwoLevelPreconditioner
public interface Preconditioner
Preconditioner interface. Before a preconditioner is used,
setMatrix
must be called-
Method Summary
Modifier and TypeMethodDescriptionSolves the approximate problem with the given right hand side.void
Sets the operator matrix for the preconditioner.transApply
(Vector b, Vector x) Solves the approximate transpose problem with the given right hand side.
-
Method Details
-
apply
Solves the approximate problem with the given right hand side. Result is stored in given solution vector- Parameters:
b
- Right hand side of problemx
- Result is stored here- Returns:
- x
-
transApply
Solves the approximate transpose problem with the given right hand side. Result is stored in given solution vector- Parameters:
b
- Right hand side of problemx
- Result is stored here- Returns:
- x
-
setMatrix
Sets the operator matrix for the preconditioner. This method must be called before a preconditioner is used by an iterative solver- Parameters:
A
- Matrix to setup the preconditioner for. Not modified
-