Array notation merge operations

Array notation merge operations

Does the array notation support merge operations?

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

Is the correct forum for this question?

Yes, this is the correct forum, maxx2315, and welcome. Cilk Plus supports array reductions similar to the following:

float a[100];
// code to manipulate a
float x = __sec_reduce_add(a[:]); // sum all elements of a

Is that what you are looking for?

Leave a Comment

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