|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.matrix.tfloat.algo.solver.preconditioner.FloatDiagonal
public class FloatDiagonal
Diagonal preconditioner. Uses the inverse of the diagonal as preconditioner
Constructor Summary | |
---|---|
FloatDiagonal(int n)
Constructor for DiagonalPreconditioner |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatDiagonal(int n)
n
- Problem size (number of rows)Method Detail |
---|
public FloatMatrix1D apply(FloatMatrix1D b, FloatMatrix1D x)
FloatPreconditioner
apply
in interface FloatPreconditioner
b
- Right hand side of problemx
- Result is stored here
public FloatMatrix1D transApply(FloatMatrix1D b, FloatMatrix1D x)
FloatPreconditioner
transApply
in interface FloatPreconditioner
b
- Right hand side of problemx
- Result is stored here
public void setMatrix(FloatMatrix2D A)
FloatPreconditioner
setMatrix
in interface FloatPreconditioner
A
- Matrix to setup the preconditioner for. Not modified
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |