Skip to content

Support broadcasting#16

Merged
kylebarron merged 3 commits into
mainfrom
kyle/broadcasting
Jul 4, 2023
Merged

Support broadcasting#16
kylebarron merged 3 commits into
mainfrom
kyle/broadcasting

Conversation

@kylebarron

@kylebarron kylebarron commented Jul 4, 2023

Copy link
Copy Markdown
Member

This is derived from pola-rs/geopolars#42 and pola-rs/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