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

xtensor-python in reverse: pyarray_view and pytensor_view? #311

Open
matwey opened this issue Jun 23, 2024 · 0 comments
Open

xtensor-python in reverse: pyarray_view and pytensor_view? #311

matwey opened this issue Jun 23, 2024 · 0 comments

Comments

@matwey
Copy link

matwey commented Jun 23, 2024

Hello,

I suppose it is a feature request.

I want to call a python function provided by a user from my C++ code. The function argument is numpy array the function result is numpy array as well. Yet it is obviously not possible to call this function lazily with xtensor code, I would like to provide xtensor or xarray as is to python side. Generally, it is possible via buffer protocol. It think it can be implemented using helpers pyarray_view<XContainer> and pytensor_view<XContainer>.

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

1 participant