Software Archive
Read-only legacy content
17060 Discussions

Array notation merge operations

maxx2315
Beginner
556 Views

Does the array notation support merge operations?

0 Kudos
2 Replies
maxx2315
Beginner
556 Views
Is the correct forum for this question?
0 Kudos
Brandon_H_Intel
Employee
556 Views
Yes, this is the correct forum, maxx2315, and welcome. Cilk Plus supports array reductions similar to the following:

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


Is that what you are looking for?
0 Kudos
Reply