IterativeLinearSolverEvent.
| Modifier and Type | Field and Description |
|---|---|
| private final RealVector | b
The right-hand side vector. |
| private final RealVector | r
The current estimate of the residual. |
| private final double | rnorm
The current estimate of the norm of the residual. |
| private static final long | |
| private final RealVector | x
The current estimate of the solution. |
| Access | Constructor and Description |
|---|---|
| public | DefaultIterativeLinearSolverEvent(final Object
the iterative solver which fired this event source, final int the number of iterations performed at the time
iterations, final RealVector this event is createdthe current estimate of the solution x, final RealVector the right-hand side vector b, final RealVector the current estimate of the residual (can be r, final double null)the norm of the current estimate of the residual rnorm)Creates a new instance of this class. |
| public | DefaultIterativeLinearSolverEvent(final Object
the iterative solver which fired this event source, final int the number of iterations performed at the time
iterations, final RealVector this event is createdthe current estimate of the solution x, final RealVector the right-hand side vector b, final double the norm of the current estimate of the residual rnorm)Creates a new instance of this class. |
| Modifier and Type | Method and Description |
|---|---|
| public double | getNormOfResidual()
Implements abstract org. Returns the norm of the residual. |
| public RealVector | getResidual()
Overrides org. Returns the residual. |
| public RealVector | getRightHandSideVector()
Implements abstract org. Returns the current right-hand side of the linear system to be solved. |
| public RealVector | getSolution()
Implements abstract org. Returns the current estimate of the solution to the linear system to be solved. |
| public boolean | Returns: true if r != nullOverrides org. Returns |
| b | back to summary |
|---|---|
| private final RealVector b The right-hand side vector. | |
| r | back to summary |
|---|---|
| private final RealVector r The current estimate of the residual. | |
| rnorm | back to summary |
|---|---|
| private final double rnorm The current estimate of the norm of the residual. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| x | back to summary |
|---|---|
| private final RealVector x The current estimate of the solution. | |
| DefaultIterativeLinearSolverEvent | back to summary |
|---|---|
| public DefaultIterativeLinearSolverEvent(final Object source, final int iterations, final RealVector x, final RealVector b, final RealVector r, final double rnorm) Creates a new instance of this class. This implementation does
not deep copy the specified vectors
| |
| DefaultIterativeLinearSolverEvent | back to summary |
|---|---|
| public DefaultIterativeLinearSolverEvent(final Object source, final int iterations, final RealVector x, final RealVector b, final double rnorm) Creates a new instance of this class. This implementation does
not deep copy the specified vectors
| |
| getNormOfResidual | back to summary |
|---|---|
| public double getNormOfResidual() Implements abstract org. Doc from org. Returns the norm of the residual. The returned value is not required to
be exact. Instead, the norm of the so-called updated
residual (if available) should be returned. For example, the
| |
| getResidual | back to summary |
|---|---|
| public RealVector getResidual() Overrides org. Doc from org. Returns the residual. This is an optional operation, as all iterative linear solvers do not provide cheap estimate of the updated residual vector, in which case
The default implementation throws a
MathUnsupportedOperationException
if no residual vector r was provided at construction time.
| |
| getRightHandSideVector | back to summary |
|---|---|
| public RealVector getRightHandSideVector() Implements abstract org. Doc from org. Returns the current right-hand side of the linear system to be solved.
This method should return an unmodifiable view, or a deep copy of the
actual right-hand side vector, in order not to compromise subsequent
iterations of the source
| |
| getSolution | back to summary |
|---|---|
| public RealVector getSolution() Implements abstract org. Doc from org. Returns the current estimate of the solution to the linear system to be
solved. This method should return an unmodifiable view, or a deep copy of
the actual current solution, in order not to compromise subsequent
iterations of the source
| |
| providesResidual | back to summary |
|---|---|
| public boolean providesResidual() Overrides org. Doc from org. Returns
| |