Welcome to Intel® Software Network Quick Login | Join | Help |
Search in Intel® Software Network Forums
in Go

[Q] an MKL function of the multiplication of two vectors ?

Last post 07-15-2008, 5:31 PM by kkkondo. 3 replies.
Sort Posts: Previous Next
 07-14-2008, 4:06 AM 30259023  

[Q] an MKL function of the multiplication of two vectors ?

Hello,

Is there a fast MKL function of the multiplication of two vectors
 doing "for(i=0;i<n;i++) x[i]=a[i]*b[i];" ?

Thanks in advance.

 
 07-14-2008, 4:23 AM 30259024 in reply to 30259023  

Re: [Q] an MKL function of the multiplication of two vectors ?

Try:

Fortran:
call vsmul( n, a, b, y )
call vdmul( n, a, b, y )
call vcmul( n, a, b, y )
call vzmul( n, a, b, y )
C:
vsMul( n, a, b, y );
vdMul( n, a, b, y );
vcMul( n, a, b, y );
vzMul( n, a, b, y );

http://www.intel.com/software/products/mkl/data/vml/functions/mul.html



Ben
 
 07-14-2008, 5:45 AM 30259032 in reply to 30259024  

Re: [Q] an MKL function of the multiplication of two vectors ?

Normally, the code generated by any vectorizing compiler would be satisfactory.
 
 07-15-2008, 5:31 PM 30259217 in reply to 30259024  

Re: [Q] an MKL function of the multiplication of two vectors ?

Thank you.

With your advice I sought the latest MKL reference document, which included "v?mul."
 
View as RSS news feed in XML

Shortcuts


Tags For This Post

...

Community Tags

...