Skip to content

Add “n-ary” zip #231

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

Closed
bluss opened this issue Nov 12, 2016 · 3 comments · Fixed by #287
Closed

Add “n-ary” zip #231

bluss opened this issue Nov 12, 2016 · 3 comments · Fixed by #287
Assignees

Comments

@bluss
Copy link
Member

bluss commented Nov 12, 2016

For given arities (2, 3, 4, ..) implement zip2, zip3, etc functions.

https://github.com/bluss/rust-ndarray/blob/master/examples/zip_many.rs

@bluss
Copy link
Member Author

bluss commented Nov 15, 2016

secrets from freude: they use a corresponding fold function as well.

@bluss
Copy link
Member Author

bluss commented Mar 25, 2017

  • The Zip object should be splittable to enable fork parallelism (rayon)

@bluss
Copy link
Member Author

bluss commented Mar 27, 2017

Consider a generalization that fits very well into the current scheme:

Extend zip arguments to include everything that has a dimension and stride. For example an AxisIter is one-dimensional and has a uniform stride, supposedly.

A chunks iterator (of even chunks) is n-dimensional and has custom strides.

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 a pull request may close this issue.

1 participant