Parallel_reduce Lambda for arrays

Parallel_reduce Lambda for arrays

Can I use lambda functions to do parallel_reduce of arrays in TBB?.
It's not over a single variable say, "sum". But over an array "sum[i]". I did not find this in the examples or in the Tutorial pdf. Can you direct me to a sourceThanks in advance,Jay

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

For sake of future readers: I have provided an example at StackOverflow.

Leave a Comment

Please sign in to add a comment. Not a member? Join today