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