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

Element by element multiply

postaquestion
Novice
681 Views
I couldn't find in your doc a simple function to do an element-by-element multiplication of two vectors, i.e. something like

for(i=0; i = a * b;

I guess I could do it with a diagonal matrix/vector product, but is there a cleaner and/or faster interface?
0 Kudos
1 Reply
Todd_R_Intel
Employee
681 Views
Check out the vdMul, vsMul, vcMul, and vzMul functions. They're documented in the reference manual in the chapter on vector mathematical functions.

-Todd
0 Kudos
Reply