Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

sum elements of an array

Andrew_Roberts
Beginner
168 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
168 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
168 Views
Such routines absentin currentversions ofMKL.
Reply