Skip to content

Add an implementation of broadcast for xtensor #1486

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
wants to merge 19 commits into
base: labeled_tensors
Choose a base branch
from

Conversation

AllenDowney
Copy link
Contributor

@AllenDowney AllenDowney commented Jun 19, 2025

@AllenDowney
Copy link
Contributor Author

@ricardoV94 This is just a starting place, mostly to sketch the APIs. Don't even look at the implementations yet.

This one is a little confusing to me because broadcast is a function in xarray but not a method. So I'm not sure how to map that onto the init and make_node methods of XOp.

Please take a look at this and then maybe we can talk through it synchronously.

@ricardoV94
Copy link
Member

There's also broadcast_like which is a method, but in general it doesn't matter if it's a method or a function, the strategy is usually the same

@ricardoV94 ricardoV94 force-pushed the labeled_tensors branch 5 times, most recently from 51031fc to 91b159b Compare June 20, 2025 17:02
@ricardoV94 ricardoV94 force-pushed the labeled_tensors branch 3 times, most recently from e3c5850 to 64c96af Compare June 20, 2025 17:24
@ricardoV94 ricardoV94 force-pushed the labeled_tensors branch 4 times, most recently from 71bc4ef to 41d9be4 Compare June 21, 2025 17:24
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

Successfully merging this pull request may close these issues.

3 participants