Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
 
Thread Tools  Search this thread 
kkkondo
July 14, 2008 5:06 AM PDT
[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.

bentomkins
July 14, 2008 5:23 AM PDT
Rate
 
#1
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


tim18
Total Points: 26817
Status Points: 26317
Brown Belt
July 14, 2008 6:45 AM PDT
Rate
 
#2 Reply to #1
Normally, the code generated by any vectorizing compiler would be satisfactory.
kkkondo
July 15, 2008 6:31 PM PDT
Rate
 
#3 Reply to #1
Thank you.

With your advice I sought the latest MKL reference document, which included "v?mul."

Forum Statistics

4488 users have contributed to 24040 threads and 70117 posts to date.
In the past 24 hours, we have 21 new thread(s) 108 new posts(s), and 141 new user(s).

In the past 3 days, the most popular thread for everyone has been IVF 11.0 and VS2008 The most posts were made to IVF 11.0 and VS2008 The post with the most views is Leigh, Have you built this fo

Please welcome our newest member janet.p.simpsonnasa.gov