-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] numpy types cannot be used for ufunc arguments #6161
Comments
Thanks for the report. It's good to know what people are trying this and finding the obvious deficiencies :-) It's slightly harder than it looks. Cython doesn't actually know a lot about integer typedefs - mostly just that it's "some integer" and whether it's signed or not. However, it needs to tell Numpy exactly what type is actually being used. So it either needs some special-casing for these Numpy typedefs, or it needs a clever runtime mechanism to work out what to tell Numpy. |
Describe the bug
Using numpy's C types for ufunc declarations raises a very long error.
Code to reproduce the behaviour:
Expected behaviour
Numpy ufuncs work with numpy data types.
OS
Linux, Ubuntu 22.04
Python version
3.11
Cython version
cython 3.0.10 py311hb755f60_0 conda-forge
Additional context
No response
The text was updated successfully, but these errors were encountered: