(self)
| 353 | npt.assert_array_equal(x, locals()['y_magic'] ) |
| 354 | |
| 355 | def test_rational(self): |
| 356 | logger.info( 'Test rational evaluation' ) |
| 357 | a = np.arange(1e5) |
| 358 | b = np.arange(1e5) * 0.1 |
| 359 | x = (a + 2 * b) / (1 + a + 4 * b * b) |
| 360 | ne3.evaluate('y=(a + 2*b) / (1 + a + 4*b*b)') |
| 361 | npt.assert_array_almost_equal(x, locals()['y'] ) |
| 362 | |
| 363 | class test_reductions(unittest.TestCase): |
| 364 | # NE3 reductions not implemented yet |
nothing calls this directly
no outgoing calls
no test coverage detected