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:
- java.io.Serializable
public class IterativeSolverNotConvergedException
- extends NotConvergedException
Exception for lack of convergence in a linear problem. Contains the final
computed residual.
- See Also:
- Serialized Form
Method Summary |
int |
getIterations()
Gets the number of iterations used when this exception was thrown |
double |
getResidual()
Returns final computed residual |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IterativeSolverNotConvergedException
public IterativeSolverNotConvergedException(NotConvergedException.Reason reason,
java.lang.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
getResidual
public double getResidual()
- Returns final computed residual
getIterations
public int getIterations()
- Gets the number of iterations used when this exception was thrown