Skip to content

Use and/or implement Array API #1131

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

Open
gdementen opened this issue Apr 7, 2025 · 0 comments
Open

Use and/or implement Array API #1131

gdementen opened this issue Apr 7, 2025 · 0 comments

Comments

@gdementen
Copy link
Contributor

If we only used the Array API internally to work on our .data, we would get support for other kinds of arrays than Numpy. This would be a huge task, but would bring high rewards (transparent dask or GPU support).

This would make #530 obsolete I suppose.

If we provided/exposed an Array API, which is a different task (also huge), we would also get high rewards: our Array objects would be usable as-is in some downstream libraries such as scikit-learn.

A much smaller/easier task would be to implement only the Data Interchange protocol (aka DLPack), which would make la.Array objects consumable directly by downstream libraries like scikit-learn (but would loose labels in the process).

I think this would only be a matter of implementing __dlpack__ and __dlpack_device__ methods both forwarding their calls to the respective methods on .data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant