|
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.IterativeSolver.Problem
public static class IterativeSolver.Problem
This class models the problem of solving a system of linear equations (Ax = b) using an iterative method.
| Constructor Summary | |
|---|---|
IterativeSolver.Problem(Matrix A,
Vector b)
Create the problem of solving Ax = b. |
|
| Method Summary | |
|---|---|
Matrix |
A()
Get the coefficient matrix of the problem. |
Vector |
b()
Get the right-hand side vector of the problem. |
Vector |
initialGuess()
Get the initial guess of the solution for the problem. |
IterativeSolver.Problem |
initialGuess(Vector initialGuess)
Override the initial guess of the solution. |
Preconditioner |
leftPreconditioner()
Get the left preconditioner. |
IterativeSolver.Problem |
leftPreconditioner(Preconditioner preconditioner)
Override the left preconditioner. |
int |
maxIteration()
Get the specified maximum number of iterations. |
IterativeSolver.Problem |
maxIteration(int maxIteration)
Override the maximum count of iterations. |
Preconditioner |
rightPreconditioner()
Get the right preconditioner. |
IterativeSolver.Problem |
rightPreconditioner(Preconditioner preconditioner)
Override the right preconditioner. |
Tolerance |
tolerance()
Get the specified Tolerance instance. |
IterativeSolver.Problem |
tolerance(Tolerance tolerance)
Override the tolerance instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IterativeSolver.Problem(Matrix A,
Vector b)
The default values of other optional parameters are:
maxIteration - Integer.MAX_VALUE as the maximum count of iterations
tolerance - AbsoluteTolerance with DEFAULT_TOLERANCE
initialGuess - a zero vector
leftPreconditioner - an IdentityPreconditioner
rightPreconditioner - an IdentityPreconditioner
A - the n-by-n coefficient matrixb - the right-hand side n-vector| Method Detail |
|---|
public Matrix A()
public Vector b()
public IterativeSolver.Problem maxIteration(int maxIteration)
maxIteration - the maximum count of iterations
public int maxIteration()
public IterativeSolver.Problem tolerance(Tolerance tolerance)
tolerance - the criteria which determines when the solution converges and the iteration stops
public Tolerance tolerance()
Tolerance instance.
Tolerance instancepublic IterativeSolver.Problem initialGuess(Vector initialGuess)
initialGuess - the initial guess of the solution
public Vector initialGuess()
public IterativeSolver.Problem leftPreconditioner(Preconditioner preconditioner)
IdentityPreconditioner.
preconditioner - the preconditioner
public Preconditioner leftPreconditioner()
public IterativeSolver.Problem rightPreconditioner(Preconditioner preconditioner)
IdentityPreconditioner.
preconditioner - the preconditioner
public Preconditioner rightPreconditioner()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||