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.21k stars 207 forks source link

fix: replace npy_cdouble with C++ complex #461

Closed 27rabbitlt closed 9 months ago

27rabbitlt commented 9 months 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.