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

Method test_eval_versus_run

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

Source from the content-addressed store, hash-verified

311 self.ssize = ssize
312
313 def test_eval_versus_run(self):
314 logger.info( 'Compare evaluate and .run' )
315 a = np.arange(100.0).reshape(10, 10)[::2]
316 b = np.arange(10.0)
317 expr = ne3.NumExpr('2*a+3*b')
318 npt.assert_array_almost_equal(expr(a=a, b=b), expr.run(a=a, b=b))
319
320 def test_prealloc(self):
321 logger.info( 'Test pre-allocated output evaluate' )

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected