Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

incx in BLAS routines

Tags:

blas

intelhpc

There are certain BLAS routines that take as parameter the increment of a vector X, namely incX. I can't find what the increment is and how it affects the result of the computation.

Can anyone provide some example or any other kind of info ?

Update:

I've found here the best info: Intel HPC mkl manual

like image 382
Radu Stoenescu Avatar asked Mar 19 '13 11:03

Radu Stoenescu


1 Answers

This is quite simple actually.

Let take the example of axpy(n,a,*x,incx,*y,incy) which compute : y = ax + y

If, for example, you need to compute :

y[0] = ax[0] + y[0]; y[1] = ax[2] + y[1]; y[2] = ax[4] + y[2]

Then your call is : axpy(3,a,x,2,y,1)

But usually, for basic operations, you just have to specify incx = incy = 1

like image 104
Michael M. Avatar answered Jan 04 '23 04:01

Michael M.