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

Method test_argmax_with_out

numpy/core/tests/test_multiarray.py:9298–9302  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9296class TestWritebackIfCopy:
9297 # all these tests use the WRITEBACKIFCOPY mechanism
9298 def test_argmax_with_out(self):
9299 mat = np.eye(5)
9300 out = np.empty(5, dtype='i2')
9301 res = np.argmax(mat, 0, out=out)
9302 assert_equal(res, range(5))
9303
9304 def test_argmin_with_out(self):
9305 mat = -np.eye(5)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
argmaxMethod · 0.45

Tested by

no test coverage detected