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

Method check

numpy/core/tests/test_mem_overlap.py:718–721  ·  view source on GitHub ↗
(ufunc, a, ind, out)

Source from the content-addressed store, hash-verified

716
717 def test_binary_ufunc_reduceat_manual(self):
718 def check(ufunc, a, ind, out):
719 c1 = ufunc.reduceat(a.copy(), ind.copy(), out=out.copy())
720 c2 = ufunc.reduceat(a, ind, out=out)
721 assert_array_equal(c1, c2)
722
723 # Exactly same input/output arrays
724 a = np.arange(10000, dtype=np.int16)

Callers

nothing calls this directly

Calls 5

assert_array_equalFunction · 0.90
ufuncClass · 0.85
view_element_first_byteFunction · 0.85
copyMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected