Package no.uib.cipr.matrix.sparse
Class IterativeSolverNotConvergedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
no.uib.cipr.matrix.NotConvergedException
no.uib.cipr.matrix.sparse.IterativeSolverNotConvergedException
- All Implemented Interfaces:
Serializable
Exception for lack of convergence in a linear problem. Contains the final
computed residual.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class no.uib.cipr.matrix.NotConvergedException
NotConvergedException.Reason
-
Field Summary
Fields inherited from class no.uib.cipr.matrix.NotConvergedException
reason
-
Constructor Summary
ConstructorsConstructorDescriptionIterativeSolverNotConvergedException
(NotConvergedException.Reason reason, String message, IterationMonitor iter) Constructor for IterativeSolverNotConvergedExceptionConstructor for IterativeSolverNotConvergedException -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of iterations used when this exception was throwndouble
Returns final computed residualMethods inherited from class no.uib.cipr.matrix.NotConvergedException
getReason
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IterativeSolverNotConvergedException
public IterativeSolverNotConvergedException(NotConvergedException.Reason reason, String message, IterationMonitor iter) Constructor for IterativeSolverNotConvergedException- Parameters:
reason
- Reason for this exceptionmessage
- A more detailed messageiter
- Associated iteration monitor, for extracting residual and iteration number
-
IterativeSolverNotConvergedException
public IterativeSolverNotConvergedException(NotConvergedException.Reason reason, IterationMonitor iter) Constructor for IterativeSolverNotConvergedException- Parameters:
reason
- Reason for this exceptioniter
- Associated iteration monitor, for extracting residual and iteration number
-
-
Method Details
-
getResidual
public double getResidual()Returns final computed residual -
getIterations
public int getIterations()Gets the number of iterations used when this exception was thrown
-