Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

sum elements of an array

Andrew_Roberts
Beginner
399 Views
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
399 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.
0 Kudos
Gennady_F_Intel
Moderator
399 Views
Such routines absentin currentversions ofMKL.
0 Kudos
Reply