(self)
| 414 | np.seterr(**self.olderr) |
| 415 | |
| 416 | def test_simple(self): |
| 417 | x = np.array([1+1j, 0+2j, 1+2j, np.inf, np.nan]) |
| 418 | y_r = np.array([np.sqrt(2.), 2, np.sqrt(5), np.inf, np.nan]) |
| 419 | y = np.abs(x) |
| 420 | assert_almost_equal(y, y_r) |
| 421 | |
| 422 | def test_fabs(self): |
| 423 | # Test that np.abs(x +- 0j) == np.abs(x) (as mandated by C99 for cabs) |
nothing calls this directly
no test coverage detected