zgemv - General Matrix-Vector Product (CDB) VI
- Updated2025-07-30
- 3 minute(s) read
Calculates the product of a general matrix and a vector.
The data types you wire to the A, x, and y inputs determine the polymorphic instance to use.

Inputs/Outputs
operation A
—
operation A specifies the operation the VI performs on matrix A, resulting in matrix op(A).
A
—
A is a complex matrix such that op(A) has dimensions N × M.
x
—
x is a complex vector. The VI multiplies the first M elements in x by op(A). x must have at least M elements.
y
—
y is a complex vector. y must have at least as many elements as op(A)*x. The default is an N-element vector with all elements equal to 0.
alpha
—
alpha is a complex scalar that scales op(A)*x. The default is 1.
beta
—
beta is a complex scalar that scales y. The default is 1.
zgemv
—
zgemv is a complex vector of the same size as y. For the first N elements, the VI returns the results of alpha*op(A)*x + beta*y. For any remaining elements, the VI returns the value of the element in y with the same index.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Refer to the BLAS (Basic Linear Algebra Subprograms) website at netlib.org for more information on BLAS functions.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Linear Algebra\Comparison of BLAS and linear algebra VIs.vi
operation A
—
A
—
x
—
alpha
—
zgemv
—
error
—