dpnp.linalg.LinAlgError

exception dpnp.linalg.LinAlgError

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

For full documentation refer to numpy.linalg.LinAlgError.

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

Examples

>>> import dpnp as np
>>> np.linalg.inv(np.zeros((2, 2)))
Traceback (most recent call last):
...
dpnp.linalg.LinAlgError: The input coefficient matrix is singular.