MCPcopy Create free account
hub / github.com/numpy/numpy / _assert_finite

Function _assert_finite

numpy/linalg/linalg.py:215–218  ·  view source on GitHub ↗
(*arrays)

Source from the content-addressed store, hash-verified

213 raise LinAlgError('Last 2 dimensions of the array must be square')
214
215def _assert_finite(*arrays):
216 for a in arrays:
217 if not isfinite(a).all():
218 raise LinAlgError("Array must not contain infs or NaNs")
219
220def _is_empty_2d(arr):
221 # check size first for efficiency

Callers 2

eigvalsFunction · 0.85
eigFunction · 0.85

Calls 3

isfiniteFunction · 0.85
LinAlgErrorClass · 0.85
allMethod · 0.45

Tested by

no test coverage detected