Page MenuHomeSolus

Initial commit of python-numexpr
ClosedPublic

Authored by EP01 on Aug 30 2017, 6:23 PM.
Tags
None
Referenced Files
F10988825: D907.diff
Mon, Jul 24, 12:40 PM
F10832155: D907.id2005.diff
Jun 5 2023, 9:43 PM
F10832150: D907.id.diff
Jun 5 2023, 9:34 PM
F10786407: D907.diff
May 26 2023, 7:54 AM
F10781457: D907.id2240.diff
May 25 2023, 7:42 AM
F10780532: D907.diff
May 25 2023, 2:02 AM
F10780496: D907.id2005.diff
May 25 2023, 1:47 AM
F10731367: D907.diff
May 11 2023, 5:21 AM
Subscribers
None

Details

Summary

Initial commit of numexpr, a dependancy of pandas, itself a dependancy of Spyder (T1664).

Test Plan
In [1]: import numpy as np

In [2]: import numexpr as ne

In [3]: a = np.arange(1e6)

In [4]: b = np.arange(1e6)

In [5]: ne.evaluate("a + 1")
Out[5]: 
array([  1.00000000e+00,   2.00000000e+00,   3.00000000e+00, ...,
         9.99998000e+05,   9.99999000e+05,   1.00000000e+06])

In [6]: ne.evaluate('a*b-4.1*a > 2.5*b')
Out[6]: array([False, False, False, ...,  True,  True,  True], dtype=bool)

In [7]: ne.evaluate("sin(a) + arcsinh(a/b)")
Out[7]: 
array([        nan,  1.72284457,  1.79067101, ...,  1.09567006,
        0.17523598, -0.09597844])

Diff Detail

Repository
R3688 python-numexpr
Lint
Lint Not Applicable
Unit
Tests Not Applicable