Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ compare
Function
compare
numpy/ma/testutils.py:235–236 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
233
234
""
"
235
def
compare(x, y):
236
return
(not np.all(approx(x, y)))
237
assert_array_compare(compare, x, y, err_msg=err_msg, verbose=verbose,
238
header=
'Arrays are not equal'
)
239
Callers
3
_comparison
Method · 0.70
npy_binsearch
Function · 0.50
npy_argbinsearch
Function · 0.50
Calls
3
approx
Function · 0.85
almost
Function · 0.85
all
Method · 0.45
Tested by
no test coverage detected