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.


icon

Inputs/Outputs

  • ci32.png operation A

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

    0Direct (default)
    1Conjugated & Transposed
    2Transposed
  • c2ddbl.png A

    A is a real matrix such that op(A) has dimensions N × M.

  • c1ddbl.png x

    x is a real vector.

    The VI multiplies the first M elements in x by op(A). x must have at least M elements.

  • c1ddbl.png y

    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.

  • cdbl.png alpha

    alpha is a real scalar that scales op(A)*x. The default is 1.

  • cdbl.png beta

    beta is a real scalar that scales y. The default is 1.

  • i1ddbl.png dgemv

    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.

  • ii32.png 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