public class DoubleILUT extends Object implements DoublePreconditioner
Constructor and Description |
---|
DoubleILUT(int n)
Sets up the preconditioner for the given problem size.
|
DoubleILUT(int n,
double tau,
int p)
Sets up the preconditioner for the problem size
|
Modifier and Type | Method and Description |
---|---|
DoubleMatrix1D |
apply(DoubleMatrix1D b,
DoubleMatrix1D x)
Solves the approximate problem with the given right hand side.
|
void |
setMatrix(DoubleMatrix2D A)
Sets the operator matrix for the preconditioner.
|
DoubleMatrix1D |
transApply(DoubleMatrix1D b,
DoubleMatrix1D x)
Solves the approximate transpose problem with the given right hand side.
|
public DoubleILUT(int n, double tau, int p)
n
- Problem size (number of rows)tau
- 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 DoubleILUT(int n)
n
- Problem size (number of rows)public DoubleMatrix1D apply(DoubleMatrix1D b, DoubleMatrix1D x)
DoublePreconditioner
apply
in interface DoublePreconditioner
b
- Right hand side of problemx
- Result is stored herepublic DoubleMatrix1D transApply(DoubleMatrix1D b, DoubleMatrix1D x)
DoublePreconditioner
transApply
in interface DoublePreconditioner
b
- Right hand side of problemx
- Result is stored herepublic void setMatrix(DoubleMatrix2D A)
DoublePreconditioner
setMatrix
in interface DoublePreconditioner
A
- Matrix to setup the preconditioner for. Not modifiedJump to the Parallel Colt Homepage