|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse.solver.iterative.preconditioner.JacobiPreconditioner
public class JacobiPreconditioner
The Jacobi (or diagonal) preconditioner is one of the simplest forms of preconditioning, in which the preconditioner is chosen to be the diagonal of the matrix P = diag(A).
| Constructor Summary | |
|---|---|
JacobiPreconditioner(Matrix A)
|
|
| Method Summary | |
|---|---|
Vector |
solve(Vector x)
Return P-1x, where P is the diagonal matrix with the same diagonal as A. |
Vector |
transposeSolve(Vector x)
P-t = P-1 for this preconditioner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JacobiPreconditioner(Matrix A)
| Method Detail |
|---|
public Vector solve(Vector x)
vi = xi / Ai
solve in interface Preconditionerx - the input Vector
public Vector transposeSolve(Vector x)
transposeSolve in interface Preconditionerx -
solve(x)
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||