If you want to beat sum
you will have a hard time.
Have a look at
@edit sum(a)
And you may want to read this discussion: Implementing parallel sum
There are others also about sum
and performance, just search for sum.
If you want to beat sum
you will have a hard time.
Have a look at
@edit sum(a)
And you may want to read this discussion: Implementing parallel sum
There are others also about sum
and performance, just search for sum.