Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Andrew_Roberts
Beginner
75 Views

sum elements of an array

I see that there is a way to sum the magnitude of each element of an array using dasum. However, I don't see a simple way to sum the elements of a signed array. Is there a simple way of doing this using an MKL function?
0 Kudos
2 Replies
llevrel
Beginner
75 Views

I don't think so (at least I didn't find one either), but a simple loop should get auto-vectorized by the compiler. Try option vec-report when compiling to check this.
Gennady_F_Intel
Moderator
75 Views

Such routines absentin currentversions ofMKL.
Reply