Skip to content

num::gemv

Defined in header <container/matrix_ops.hpp>

void gemv(real alpha, const mat<real> &A, bool transA, const vec<real> &x, real beta,
          vec<real> &y, idx rows = static_cast<idx>(-1));

Multiply a matrix and a vector (GEMV): \(y \leftarrow \alpha\, op(A_r)\, x + \beta y\). \(A_r\) is the leading rows rows of A; y must already be sized.