pydata / numexpr

Fast numerical array expression evaluator for Python, NumPy, Pandas, PyTables and more
https://numexpr.readthedocs.io/en/latest/user_guide.html
MIT License
2.25k stars 212 forks source link

fix: replace npy_cdouble with C++ complex #461

Closed 27rabbitlt closed 1 year ago

27rabbitlt commented 1 year ago

Since numpy uses new complex type, the current usage of npy_cdouble (in complex_functions.hpp) is no longer supported.

And in fact numexpr doesn't have to use numpy's complex type, so I replaced npy_cdouble with C++11 std::complex.

This fixes issue https://github.com/pydata/numexpr/issues/458.