-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support for xp.linalg.lu (not yet part of the Array API spec) #45
Comments
Thanks @ogrisel! It looks like you only have a single usage in scikit-learn (here), with I think for the API design decisions, it's best to put them on data-apis/array-api#627. And then let's implement it here. I'll try to post some thoughts there within the next few hours. |
Yes, this is also what I found out via |
If numpy support relied |
That sounds like the right thing to do to me, we don't want this package to have a direct dependency on |
Based on the scope of array-api-compat, Regarding the scipy question, if |
Closing this as it's out of scope here as long as |
Context adding LU factorization to the Array API spec:
Since
numpy.linalg.lu
does not exist yet (butscipy.linalg.lu
does), @rgommers suggested working out an API candidate as part ofarray-api-compat
first by reviewing the API choices and options implemented in various libraries targeting Array API support.A short term implementation for numpy could probably delegate the work to
scipy.linalg.lu
in a first iteration.Based on this work,
numpy.linalg
could subsequently be extended to directly implement the correct API to be submitted for a future revision of the spec.Motivation: this is needed to add Array API support to the randomized linear algebra solver for the Principal Component Analysis estimator in scikit-learn:
Non exhaustive list of available implementations:
Related methods in scipy:
The text was updated successfully, but these errors were encountered: