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

Method test_matrix_std_argmax

numpy/matrixlib/tests/test_regression.py:27–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 assert_raises(ValueError, mul)
26
27 def test_matrix_std_argmax(self):
28 # Ticket #83
29 x = np.asmatrix(np.random.uniform(0, 1, (3, 3)))
30 assert_equal(x.std().shape, ())
31 assert_equal(x.argmax().shape, ())

Callers

nothing calls this directly

Calls 4

assert_equalFunction · 0.90
uniformMethod · 0.80
stdMethod · 0.45
argmaxMethod · 0.45

Tested by

no test coverage detected