nlcpy.linalg.LinAlgError

exception nlcpy.linalg.LinAlgError

Generic Python-exception-derived object raised by linalg functions.

General purpose exception class, derived from Python's exception. Exception class, programmatically raised in linalg functions when a Linear Algebra-related condition would prevent further correct execution of the function.

Parameters
None

Examples

>>> import nlcpy as vp
>>> vp.linalg.inv(vp.zeros((2,2))) 
...
numpy.linalg.LinAlgError: Singular matrix