Class DefaultIterativeLinearSolverEvent

java.lang.Object
java.util.EventObject
org.apache.commons.math4.util.IterationEvent
org.apache.commons.math4.linear.IterativeLinearSolverEvent
org.apache.commons.math4.linear.DefaultIterativeLinearSolverEvent
All Implemented Interfaces:
java.io.Serializable

public class DefaultIterativeLinearSolverEvent
extends IterativeLinearSolverEvent
A default concrete implementation of the abstract class IterativeLinearSolverEvent.
See Also:
Serialized Form
  • Constructor Details

    • DefaultIterativeLinearSolverEvent

      public DefaultIterativeLinearSolverEvent​(java.lang.Object source, int iterations, RealVector x, RealVector b, RealVector r, double rnorm)
      Creates a new instance of this class. This implementation does not deep copy the specified vectors x, b, r. Therefore the user must make sure that these vectors are either unmodifiable views or deep copies of the same vectors actually used by the source. Failure to do so may compromise subsequent iterations of the source. If the residual vector r is null, then getResidual() throws a MathUnsupportedOperationException, and providesResidual() returns false.
      Parameters:
      source - the iterative solver which fired this event
      iterations - the number of iterations performed at the time this event is created
      x - the current estimate of the solution
      b - the right-hand side vector
      r - the current estimate of the residual (can be null)
      rnorm - the norm of the current estimate of the residual
    • DefaultIterativeLinearSolverEvent

      public DefaultIterativeLinearSolverEvent​(java.lang.Object source, int iterations, RealVector x, RealVector b, double rnorm)
      Creates a new instance of this class. This implementation does not deep copy the specified vectors x, b. Therefore the user must make sure that these vectors are either unmodifiable views or deep copies of the same vectors actually used by the source. Failure to do so may compromise subsequent iterations of the source. Callling getResidual() on instances returned by this constructor throws a MathUnsupportedOperationException, while providesResidual() returns false.
      Parameters:
      source - the iterative solver which fired this event
      iterations - the number of iterations performed at the time this event is created
      x - the current estimate of the solution
      b - the right-hand side vector
      rnorm - the norm of the current estimate of the residual
  • Method Details