Skip to content

Split multiple arrays to multiple mutable chunks #1215

Answered by mrsanor
mrsanor asked this question in Q&A
Discussion options

You must be logged in to vote

Will you please clarify why axis_chunks_iter_mut doesn't meet your needs?

I didn't realize you need to first import rayon for parallel iterator zipping to work, my bad.

You can zip together iterators regardless of the types of the iterators' items.

Ah yeah sorry, I actually meant to write that you can't zip together immutable and mutable data, rather than different dimensionalities.

But anyway, I got this to work with axis_chunks_iter and axis_chunks_iter_mut (data1 was supposed to be immutable in my example) and manually consuming the iterators. I guess I was a bit sleep deprived when I posted the topic, the answer was right there in front of me 😞

Thank you for the quick help and awe…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jturner314
Comment options

@mrsanor
Comment options

Answer selected by mrsanor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants