Skip to content
fn

dgemv

void dgemv(bool transA, int M, int N, double alpha, const double * A, int lda, const double * x, int incx, double beta, double * y, int incy)

Double-precision general matrix-vector multiply (GEMV).

Identical contract to sgemv but for double buffers; dispatches to cblas_dgemv.

Math

yi←α∑j=0N−1Aijxj+βyiy_i \leftarrow \alpha \sum_{j=0}^{N-1} A_{ij} x_j + \beta y_i

References

Accelerate.framework cblas_dgemv.

Parameters

transAbool
If true, multiply against ATA^T instead of AA.
M, Nint
A∈RM×NA \in \mathbb{R}^{M \times N}.
alpha, betadouble
Linear-combination coefficients.
Aconst double*
Row-major matrix buffer.
xconst double*
Input vector buffer.
ydouble*
Output vector buffer; updated in place.
ldaint
Leading dimension of AA.
incx, incyint
Element strides of xx and yy.