| Modifier and Type | Field and Description |
|---|---|
| private final IterationManager | manager
The object in charge of managing the iterations. |
| Access | Constructor and Description |
|---|---|
| public | IterativeLinearSolver(final int
the maximum number of iterations maxIterations)Creates a new instance of this class, with default iteration manager. |
| public | IterativeLinearSolver(final IterationManager
the custom iteration manager manager)Creates a new instance of this class, with custom iteration manager. |
| Modifier and Type | Method and Description |
|---|---|
| protected static void | checkParameters(final RealLinearOperator
the linear operator A of the system a, final RealVector the right-hand side vector b, final RealVector the initial guess of the solution x0)Performs all dimension checks on the parameters of
|
| public IterationManager | |
| public RealVector | Returns: a new vector containing the solutionthe linear operator A of the system a, final RealVector the right-hand side vector b)Returns an estimate of the solution to the linear system A · x = b. |
| public RealVector | Returns: a new vector containing the solutionthe linear operator A of the system a, RealVector the right-hand side vector b, RealVector the initial guess of the solution x0)Returns an estimate of the solution to the linear system A · x = b. |
| public abstract RealVector | Returns: a reference tox0 (shallow copy) updated with the
solutionthe linear operator A of the system a, RealVector the right-hand side vector b, RealVector initial guess of the solution x0)Returns an estimate of the solution to the linear system A · x = b. |
| manager | back to summary |
|---|---|
| private final IterationManager manager The object in charge of managing the iterations. | |
| IterativeLinearSolver | back to summary |
|---|---|
| public IterativeLinearSolver(final int maxIterations) Creates a new instance of this class, with default iteration manager.
| |
| IterativeLinearSolver | back to summary |
|---|---|
| public IterativeLinearSolver(final IterationManager manager) throws NullArgumentException Creates a new instance of this class, with custom iteration manager.
| |
| checkParameters | back to summary |
|---|---|
| protected static void checkParameters(final RealLinearOperator a, final RealVector b, final RealVector x0) throws NullArgumentException, NonSquareOperatorException, DimensionMismatchException Performs all dimension checks on the parameters of
| |
| getIterationManager | back to summary |
|---|---|
| public IterationManager getIterationManager() Returns the iteration manager attached to this solver.
| |
| solve | back to summary |
|---|---|
| public RealVector solve(final RealLinearOperator a, final RealVector b) throws NullArgumentException, NonSquareOperatorException, DimensionMismatchException, MaxCountExceededException Returns an estimate of the solution to the linear system A · x = b.
| |
| solve | back to summary |
|---|---|
| public RealVector solve(RealLinearOperator a, RealVector b, RealVector x0) throws NullArgumentException, NonSquareOperatorException, DimensionMismatchException, MaxCountExceededException Returns an estimate of the solution to the linear system A · x = b.
| |
| solveInPlace | back to summary |
|---|---|
| public abstract RealVector solveInPlace(RealLinearOperator a, RealVector b, RealVector x0) throws NullArgumentException, NonSquareOperatorException, DimensionMismatchException, MaxCountExceededException Returns an estimate of the solution to the linear system A · x = b. The solution is computed in-place (initial guess is modified).
| |