Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

gemv - General Matrix-Vector Product (Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

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.

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 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.

gemv - General Matrix-Vector Product Details

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

Example

Refer to the Comparison of BLAS and linear algebra VIs VI in the labview\examples\math\matrices.llb for an example of using the gemv - General Matrix-Vector Product VI.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit