zgemm - General Matrix-Matrix Product (CDB) VI
- Updated2025-07-30
- 3 minute(s) read
Calculates the product of two general matrices.
The data types you wire to A, B, and C determine the polymorphic instance to use.

Inputs/Outputs
operation B
—
operation B specifies the operation the VI performs on matrix B, resulting in matrix op(B).
operation A
—
operation A specifies the operation the VI performs on matrix A, resulting in matrix op(A).
A
—
A is a complex matrix of dimensions such that op(A) is an M × K matrix.
B
—
B is a complex matrix such that op(B) is a K × N matrix.
C
—
C is a complex matrix of dimensions greater than or equal to M × N.
alpha
—
alpha is a complex scalar that scales op(A)*op(B). The default is 1.
beta
—
beta is a complex scalar that scales C. The default is 1.
zgemm
—
zgemm is a complex matrix of the same dimensions as C. For elements of the first M rows and N columns, zgemm returns the result of alpha*op(A) *op(B) + beta*C. For any remaining elements, zgemm returns the value of the element in C 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 B
—
A
—
alpha
—
zgemm
—
error
—