-
Notifications
You must be signed in to change notification settings - Fork 7
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
Arithmetic operations accept numpy arrays #102
Comments
The offender is https://github.com/data-apis/array-api-strict/blob/main/array_api_strict/_array_object.py#L189 :
and then, after ISTM it's best to add an explicit type check to EDIT: Alternatively, can probably attach the |
Yes, ideally we would remove |
Yes, it would just disappear if we could remove Re: buffer protocol, PEP 688 was mentioned in the consortium meeting, and indeed:
The main problem is, as also mentioned offline, is that it's new in python 3.12. Meaning downstream like SciPy will only be able to use it in a couple of years at best (cf NEP 29, https://numpy.org/neps/nep-0029-deprecation_policy.html). So it seems that our options today are either
|
Supposedly, mixing
array-api-strict
arrays with other array types should not be allowed.Or all of them should be allowed, but then we'd need to specify something like
__array_priority__
and that opens quite a Pandora box, so I guess not?The text was updated successfully, but these errors were encountered: