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