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

Method test_object_argmax

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

Source from the content-addressed store, hash-verified

680 assert_equal(a[np.where(a == 3)], a2[np.where(a2 == 3)])
681
682 def test_object_argmax(self):
683 a = np.array([1, 2, 3], dtype=object)
684 assert_(a.argmax() == 2)
685
686 def test_recarray_fields(self):
687 # Ticket #372

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
argmaxMethod · 0.45

Tested by

no test coverage detected