Skip to content

Writing to a shared array in vmapped function #29371

Answered by jakevdp
Cattaneo123 asked this question in Q&A
Discussion options

You must be logged in to vote

You would include the array to be updated within the carry of the scan, and then update it at each step, passing the updated copy to the next step. Does that make sense?

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@Cattaneo123
Comment options

@jakevdp
Comment options

@Cattaneo123
Comment options

@jakevdp
Comment options

Answer selected by Cattaneo123
@Cattaneo123
Comment options

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