Hi,
I have two vectors (they can address the same vector) and I need to perform the product x[i]*y[j] with i,j=1..n.
What is the best way to perform this operation in parallel? I've tried
cilk_for(h=0;h<n*n;h++)r[h]=x[h/n]*y[h%n];
but I guess it is only a naive tentative to do that. Indeed vec-report says it is uneffcient.
Thanks.
Fabio