(self)
| 104 | assert_equal(np.max(x, axis=1), matrix([[3], [6]])) |
| 105 | |
| 106 | def test_min(self): |
| 107 | x = matrix([[1, 2, 3], [4, 5, 6]]) |
| 108 | assert_equal(x.min(), 1) |
| 109 | assert_equal(x.min(0), matrix([[1, 2, 3]])) |
| 110 | assert_equal(x.min(1), matrix([[1], [4]])) |
| 111 | |
| 112 | assert_equal(np.min(x), 1) |
| 113 | assert_equal(np.min(x, axis=0), matrix([[1, 2, 3]])) |
| 114 | assert_equal(np.min(x, axis=1), matrix([[1], [4]])) |
| 115 | |
| 116 | def test_ptp(self): |
| 117 | x = np.arange(4).reshape((2, 2)) |
nothing calls this directly
no test coverage detected