(self)
| 361 | np.seterr(**self.olderr) |
| 362 | |
| 363 | def test_simple(self): |
| 364 | x = np.array([1+1j, 0+2j, 1+2j, np.inf, np.nan]) |
| 365 | y_r = x ** 2 |
| 366 | y = np.power(x, 2) |
| 367 | assert_almost_equal(y, y_r) |
| 368 | |
| 369 | def test_scalar(self): |
| 370 | x = np.array([1, 1j, 2, 2.5+.37j, np.inf, np.nan]) |
nothing calls this directly
no test coverage detected