|
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.tdouble.algo.solver.preconditioner.DoubleDiagonal
public class DoubleDiagonal
Diagonal preconditioner. Uses the inverse of the diagonal as preconditioner
Constructor Summary | |
---|---|
DoubleDiagonal(int n)
Constructor for DiagonalPreconditioner |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleDiagonal(int n)
n
- Problem size (number of rows)Method Detail |
---|
public DoubleMatrix1D apply(DoubleMatrix1D b, DoubleMatrix1D x)
DoublePreconditioner
apply
in interface DoublePreconditioner
b
- Right hand side of problemx
- Result is stored here
public DoubleMatrix1D transApply(DoubleMatrix1D b, DoubleMatrix1D x)
DoublePreconditioner
transApply
in interface DoublePreconditioner
b
- Right hand side of problemx
- Result is stored here
public void setMatrix(DoubleMatrix2D A)
DoublePreconditioner
setMatrix
in interface DoublePreconditioner
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 |