by sven » Tue Sep 11, 2007 6:43 am
Dear Mat,
You want to copy w into r and set ALPHA = 1.0D0, BETA = -1.0D0. DGEMV computes
r <= alpha*A*v + beta*r
The increment allows you to stride through a vector. For example, with INCY = 2, the routine accesses every second element of Y, that is Y(1), Y(3), Y(5), ..., Y(2*N-1).
It is mainly used to allow a row of a matrix to be passed to the routine. If the leading dimension of X is LDX, then passing Y as X(2,1) and INCY as LDX,
would take Y as the second row of X.
Sven Hammarling.