MCPcopy Index your code
hub / github.com/numpy/numpy / test_take_output

Method test_take_output

numpy/_core/tests/test_regression.py:744–750  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

742 assert_(asbytes(r['var1'][0][0]) == b'abc')
743
744 def test_take_output(self):
745 # Ensure that 'take' honours output parameter.
746 x = np.arange(12).reshape((3, 4))
747 a = np.take(x, [0, 2], axis=1)
748 b = np.zeros_like(a)
749 np.take(x, [0, 2], axis=1, out=b)
750 assert_array_equal(a, b)
751
752 def test_take_object_fail(self):
753 # Issue gh-3001

Callers

nothing calls this directly

Calls 4

assert_array_equalFunction · 0.90
reshapeMethod · 0.80
takeMethod · 0.80
zeros_likeMethod · 0.80

Tested by

no test coverage detected