Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ test_argmax
Method
test_argmax
numpy/core/tests/test_regression.py:248–252 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
246
assert_array_equal(ref, x)
247
248
def
test_argmax(self):
249
# Ticket #119
250
a = np.random.normal(0, 1, (4, 5, 6, 7, 8))
251
for
i in range(a.ndim):
252
a.argmax(i)
# Should succeed
253
254
def
test_mem_divmod(self):
255
# Ticket #126
Callers
nothing calls this directly
Calls
1
argmax
Method · 0.45
Tested by
no test coverage detected