MCPcopy 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

_comparisonMethod · 0.70
npy_binsearchFunction · 0.50
npy_argbinsearchFunction · 0.50

Calls 3

approxFunction · 0.85
almostFunction · 0.85
allMethod · 0.45

Tested by

no test coverage detected