I have a number of arrays of which I would like to sum elements at corresponding positions into a "results" array with the same number of elements as the originals. The arrays I am trying to add together are stored in a vector.
That is R = A0 + A1 + ... + AN where R and all Ai are arrays of the same size.
I can't post images, so here's a link illustrating the situation.
What is the best way to do this computation in parallel with OpenMP (C++)? I'd like to take advantage of SIMD if possible, but really I'd appreciate any direction at all.
Thanks!