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