I have the following code part already using CILK+ Array Notation constructions:
As you can see, the right part is the sum of arrays located in the array of structures with appropriate coefficients located in the array as well.
The expression above is compiled and works in right way.
I tried to to simplify it by use of __sec_reduce_add() function as following:
out[0:Length] += __sec_reduce_add(p_in_gains[0:5]*p_ins[0:5].blks[0:Length])
Compiler reports about "ranks mismutch", and I guess that it cannot understand, what indexes I want to sum-up in reduce operation.
Could we give some hints to compiler, what we want to do in this specific case - to make him use reduce operation to sum-up these arrays, instead of performing it manually ?