MCPcopy Create free account
hub / github.com/pydata/numexpr / test_rational

Method test_rational

numexpr3/tests/test_numexpr.py:355–361  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
363class test_reductions(unittest.TestCase):
364 # NE3 reductions not implemented yet

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected