|
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 forward or backward sweep. That is, solving 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 - the right hand sideomega - 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 | |||||||