|
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.stationary.SORSweep
public class SORSweep
This is a building block for SOR and SSOR to perform the forward or backward sweep. That is, solving the n equations in Ax = b sequentially (forward or backward), while using the updated components of x as soon as they are available.
| Constructor Summary | |
|---|---|
SORSweep(Matrix A,
Vector b,
double omega)
Construct an instance to perform forward or backward sweep for a linear system Ax = b. |
|
| Method Summary | |
|---|---|
Vector |
backward(Vector x)
Perform a backward sweep. |
Vector |
forward(Vector x)
Perform a forward sweep. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SORSweep(Matrix A,
Vector b,
double omega)
A - the coefficient matrixb - a vectoromega - the extrapolation factor| Method Detail |
|---|
public Vector forward(Vector x)
x - the original iterate
public Vector backward(Vector x)
x - the original iterate
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||