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

Method test_argmin_with_out

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

Source from the content-addressed store, hash-verified

10434 assert_equal(res, range(5))
10435
10436 def test_argmin_with_out(self):
10437 mat = -np.eye(5)
10438 out = np.empty(5, dtype='i2')
10439 res = np.argmin(mat, 0, out=out)
10440 assert_equal(res, range(5))
10441
10442 def test_insert_noncontiguous(self):
10443 a = np.arange(6).reshape(2, 3).T # force non-c-contiguous

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
argminMethod · 0.45

Tested by

no test coverage detected