(self)
| 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)) |
| 118 | mx = x.view(np.matrix) |
| 119 | assert_(mx.ptp() == 3) |
| 120 | assert_(np.all(mx.ptp(0) == np.array([2, 2]))) |
| 121 | assert_(np.all(mx.ptp(1) == np.array([1, 1]))) |
| 122 | |
| 123 | def test_var(self): |
| 124 | x = np.arange(9).reshape((3, 3)) |