General matrix-vector multiply

F_SGEMV/F_DGEMV/F_CGEMV/F_ZGEMV

 

 

argument incx. If incx > 0 then xi is stored in

 

 

X (1 + (i - 1) x incx). If incx < 0 then xiis stored in

 

 

X (1 + (N - i) x incx). incx = 0 is an illegal value.

 

BETA

The scalar BETA. If beta = 1 and alpha = 0, this

 

 

routine returns immediately.

 

Y

REAL or COMPLEX array, minimum length

 

 

(N - 1) x incy + 1.

 

INCY

Increment for the array y. A vector y having component

 

 

yi, i = 1,..., n, is stored in an array Y() with increment

 

 

argument incy. If incy > 0 then yiis stored in

 

 

Y(1 + (i - 1) x incy). If incy < 0 then yi is stored in

 

 

Y(1 + (N - i) x incy). incy = 0 is an illegal value.

Output

Y

The updated vector replaces the input.

 

 

y ← αAx + βy

 

 

where A can be A, AT, or A*.

Chapter 3 Basic Matrix Operations 367