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

Support broadcasting #16

Merged
merged 3 commits into from
Jul 4, 2023
Merged

Support broadcasting #16

merged 3 commits into from
Jul 4, 2023

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Jul 4, 2023

This is derived from geopolars/geopolars#42 and geopolars/geopolars#136. It implements a series of Broadcastable* enums that hold either a scalar or an array of values

Note that I believe a scalar broadcastable cannot drive the iteration... it can only be used by being zipped against another iterator. This is because a scalar broadcastable will always return Some(...), and so will never exhaust the iterator.

Todo:

  • add a function to validate that the broadcasted array has the same length as the other array it's being zipped onto Validate broadcasting #17

@kylebarron kylebarron merged commit e542186 into main Jul 4, 2023
@kylebarron kylebarron deleted the kyle/broadcasting branch July 4, 2023 15:26
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.

1 participant