MCPcopy
hub / github.com/numpy/numpy / _is_empty_2d

Function _is_empty_2d

numpy/linalg/_linalg.py:265–267  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

263 raise LinAlgError("Array must not contain infs or NaNs")
264
265def _is_empty_2d(arr):
266 # check size first for efficiency
267 return arr.size == 0 and prod(arr.shape[-2:]) == 0
268
269
270def transpose(a):

Callers 2

condFunction · 0.85
pinvFunction · 0.85

Calls 1

prodFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…