apply parallel_reduce on two diffrent array at same loop

apply parallel_reduce on two diffrent array at same loop

Hi,

I am trying to apply parallel_reduce on diffrent array at a same time.

suppose :

A[]={1,2,3,4,5};

B[]={10,20,30,40,50};

i want result=(1*10 + 2*20 + 3*30 + 4*40 + 5*50)

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

Instead of a Range of pointers as in the examples in the Reference Manual, provide a Range of index values. In the Body or Func, have references to A and B, and use them with the current Range of index values.

Leave a Comment

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