MCPcopy Index your code
hub / github.com/numpy/numpy / _assert_finite

Function _assert_finite

numpy/linalg/_linalg.py:260–263  ·  view source on GitHub ↗
(*arrays)

Source from the content-addressed store, hash-verified

258 raise LinAlgError('Last 2 dimensions of the array must be square')
259
260def _assert_finite(*arrays):
261 for a in arrays:
262 if not isfinite(a).all():
263 raise LinAlgError("Array must not contain infs or NaNs")
264
265def _is_empty_2d(arr):
266 # check size first for efficiency

Callers 2

eigvalsFunction · 0.85
eigFunction · 0.85

Calls 2

LinAlgErrorClass · 0.85
allMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…