Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
265
def
_is_empty_2d(arr):
266
# check size first for efficiency
267
return
arr.size == 0 and prod(arr.shape[-2:]) == 0
268
269
270
def
transpose(a):
Callers
2
cond
Function · 0.85
pinv
Function · 0.85
Calls
1
prod
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…