public class ILUT extends java.lang.Object implements Preconditioner
Constructor and Description |
---|
ILUT(FlexCompRowMatrix LU)
Sets up the preconditioner for the given matrix.
|
ILUT(FlexCompRowMatrix LU,
double tau,
int p)
Sets up the preconditioner for the given matrix
|
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 ILUT(FlexCompRowMatrix LU, double tau, int p)
LU
- Matrix to use internally. For best performance, its non-zero
pattern should conform to that of the system matrixtau
- Drop tolerancep
- Number of entries to keep on each row in of the factored
matrix. This is in addition to the entries of the original
matrixpublic ILUT(FlexCompRowMatrix LU)
LU
- Matrix to use internally. For best performance, its non-zero
pattern should 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 modified