XLPack 6.1
C/C++ API Reference Manual
Loading...
Searching...
No Matches

◆ _dgemv()

void _dgemv ( char  trans,
int  m,
int  n,
double  alpha,
int  lda,
double  a[],
double  x[],
int  incx,
double  beta,
double  y[],
int  incy 
)

y <- αAx + βy or y <- αATx + βy (BLAS 2)

Purpose
This routine performs one of the matrix-vector operations
y <- alpha*A*x + beta*y or y <- alpha*A^T*x + beta*y
where alpha and beta are scalars, x and y are vectors and A is an m x n matrix.
Parameters
[in]transSpecifies the operation to be performed.
= 'N': y <- alpha*A*x + beta*y.
= 'T' or 'C': y <- alpha*A^T*x + beta*y.
[in]mNumber of rows of the matrix A. (m >= 0) (If m = 0, returns without computation)
[in]nNumber of columns of the matrix A. (n >= 0) (If n = 0, returns without computation)
[in]alphaScalar alpha
[in]ldaLeading dimension of the two dimensional array a[][]. (lda >= max(1, m))
[in]a[][]Array a[la][lda] (la >= n)
m x n matrix A.
[in]x[]Array x[lx] (lx >= 1 + (n - 1)*abs(incx) if trans = 'N', lx >= 1 + (m - 1)*abs(incx) otherwise)
Input vector x.
[in]incxStorage spacing between elements of x. (incx != 0)
[in]betaScalar beta. When beta is supplied as zero then y[] need not be set on input.
[in,out]y[]Array y[ly] (ly >= 1 + (m - 1)*abs(incy) if trans = 'N', ly >= 1 + (n - 1)*abs(incy) otherwise)
[in] Input vector y.
[out] Output vector. (= alpha*A*x + beta*y or alpha*A^T*x + beta*y)
[in]incyStorage spacing between elements of y. (incy != 0)
Reference
BLAS