Back to module page · Back to alphabetical overview
Signature¶
NewtonBreakdown(message, result = None)
Summary¶
Raised by newton when no Newton step can be formed.
Documentation¶
A singular Jacobian (status 5), a non-finite residual or Jacobian that no
damping can avoid (status 4) or a non-finite Newton step (status 6). It is
a LinAlgError and so a ValueError, as the exceptions these cases
raised up to pymrm 2.5.0. result holds the
scipy.optimize.OptimizeResult with the status and the last
iterate x.
Source¶
class NewtonBreakdown(np.linalg.LinAlgError):
"""Raised by :func:`newton` when no Newton step can be formed.
A singular Jacobian (status 5), a non-finite residual or Jacobian that no
damping can avoid (status 4) or a non-finite Newton step (status 6). It is
a ``LinAlgError`` and so a ``ValueError``, as the exceptions these cases
raised up to pymrm 2.5.0. ``result`` holds the
:class:`scipy.optimize.OptimizeResult` with the status and the last
iterate ``x``.
"""
def __init__(self, message, result=None):
super().__init__(message)
self.result = resultMembers¶
__init__(message, result = None)¶
Initialize self. See help(type(self)) for accurate signature.