Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork11.9k
ENH: Add ufunc flag to request contiguous buffers for SIMD loops#30449
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
seberg commentedDec 17, 2025
Thanks for looking into this. But this is not the right abstraction layer to start with. We should handle this in the But, I think we need to start at the |
Aniketsy commentedDec 18, 2025
Thanks for the detailed explanation, I’ll go with your suggestion and look into handling this at the |
fix#30413
NPY_UFUNC_REQUIRE_CONTIGUOUSflag and a flags field to PyUFuncObject.ufuncs (sin, cos).sinandcosto always expect contiguous data.Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions.
Thank you !