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

Method test_argmax_with_out

numpy/_core/tests/test_multiarray.py:10430–10434  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10428class TestWritebackIfCopy:
10429 # all these tests use the WRITEBACKIFCOPY mechanism
10430 def test_argmax_with_out(self):
10431 mat = np.eye(5)
10432 out = np.empty(5, dtype='i2')
10433 res = np.argmax(mat, 0, out=out)
10434 assert_equal(res, range(5))
10435
10436 def test_argmin_with_out(self):
10437 mat = -np.eye(5)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
argmaxMethod · 0.45

Tested by

no test coverage detected