Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ test_argmax
Method
test_argmax
numpy/_core/tests/test_regression.py:268–272 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
266
assert_array_equal(ref, x)
267
268
def
test_argmax(self):
269
# Ticket #119
270
a = np.random.normal(0, 1, (4, 5, 6, 7, 8))
271
for
i in range(a.ndim):
272
a.argmax(i)
# Should succeed
273
274
def
test_mem_divmod(self):
275
# Ticket #126
Callers
nothing calls this directly
Calls
1
argmax
Method · 0.45
Tested by
no test coverage detected