Skip to content
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

Wrap scipy.sparse ? #55

Open
tdegeus opened this issue Apr 18, 2022 · 2 comments
Open

Wrap scipy.sparse ? #55

tdegeus opened this issue Apr 18, 2022 · 2 comments

Comments

@tdegeus
Copy link
Member

tdegeus commented Apr 18, 2022

It's been a while that I followed this. I wonder, it there a support to wrap scipy sparse matrices, like there is in Eigen : https://pybind11-jagerman.readthedocs.io/en/stable/advanced.html#transparent-conversion-of-dense-and-sparse-eigen-data-types ?

@stellarpower
Copy link

I believe from the docs, a copy is required in these cases - but I think this is also happening for dense numpy arrays with xtensor-python, and, it's a start if nothing else. I think acceptable if it's a known caveat that's highlighted.

@JohanMabille
Copy link
Member

I think this is also happening for dense numpy arrays with xtensor-python

No, xtensor-python can operate on numpy arrays in place. The idea of this repo is not to depend on a python library (although an upstream package could provide bindings to python), and is not limited to 2D.

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

No branches or pull requests

3 participants