Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Array notation merge operations

maxx2315
Beginner
592 Views

Does the array notation support merge operations?

0 Kudos
2 Replies
maxx2315
Beginner
592 Views
Is the correct forum for this question?
0 Kudos
Brandon_H_Intel
Employee
592 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