gemv - General Matrix-Vector Product VI

Owning Palette: Basic Linear Algebra Subroutines VIs

Requires: Full Development System

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.

Details  Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

dgemv - General Matrix-Vector Product (DBL)

operation A specifies the operation the VI performs on matrix A, resulting in matrix op(A).

0Direct (default)
1Conjugated & Transposed
2Transposed
A is a real matrix such that op(A) has dimensions N × M.
x is a real vector. The VI multiplies the first M elements in x by op(A). x must have at least M elements.
y is a real 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 is a real scalar that scales op(A)*x. The default is 1.
beta is a real scalar that scales y. The default is 1.
dgemv is a real 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 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.

zgemv - General Matrix-Vector Product (CDB)

operation A specifies the operation the VI performs on matrix A, resulting in matrix op(A).

0Direct (default)
1Conjugated & Transposed
2Transposed
A is a complex matrix such that op(A) has dimensions N × M.
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 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 is a complex scalar that scales op(A)*x. The default is 1.
beta is a complex scalar that scales y. The default is 1.
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 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.

gemv - General Matrix-Vector Product Details

Refer to the BLAS (Basic Linear Algebra Subprograms) website at netlib.org for more information on BLAS functions.

Example

Refer to the Comparison of BLAS and linear algebra VIs VI in the labview\examples\Mathematics\Linear Algebra directory for an example of using the gemv - General Matrix-Vector Product VI.

 Open example  Find related examples