public class ILU extends Object implements Preconditioner
Constructor and Description |
---|
ILU(CompRowMatrix LU)
Sets up the ILU preconditioner
|
Modifier and Type | Method and Description |
---|---|
Vector |
apply(Vector b,
Vector x)
Solves the approximate problem with the given right hand side.
|
void |
setMatrix(Matrix A)
Sets the operator matrix for the preconditioner.
|
Vector |
transApply(Vector b,
Vector x)
Solves the approximate transpose problem with the given right hand side.
|
public ILU(CompRowMatrix LU)
LU
- Matrix to use internally. For best performance, its non-zero
pattern must conform to that of the system matrixpublic Vector apply(Vector b, Vector x)
Preconditioner
apply
in interface Preconditioner
b
- Right hand side of problemx
- Result is stored herepublic Vector transApply(Vector b, Vector x)
Preconditioner
transApply
in interface Preconditioner
b
- Right hand side of problemx
- Result is stored herepublic void setMatrix(Matrix A)
Preconditioner
setMatrix
in interface Preconditioner
A
- Matrix to setup the preconditioner for. Not modifiedCopyright © 2013. All Rights Reserved.