Performs the multiplication of two input matrices or an input matrix and an input vector.
The input matrix.
This input accepts the following data types:
The inputs of this node cannot both be vectors.
If the inputs of this node are both matrices, the number of columns in the first matrix must match the number of rows in the second matrix and must be greater than zero. Otherwise, the node returns an empty array as the output matrix multiplication and returns an error.
The second matrix.
If the inputs of this node are both matrices, the number of columns in the first matrix must match the number of rows in the second matrix and must be greater than zero. Otherwise, the node returns an empty array as the output matrix multiplication and returns an error.
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
Result of the multiplication of the first and second inputs.
This output changes to A x v or v' x A depending on the data type you wire to the inputs.
Result of the multiplication of the first and second inputs, where the second input is a vector.
Result of the multiplication of the first and second inputs, where the first input is a vector.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
If A is an n-by-k matrix and B is a k-by-m matrix, the matrix multiplication of A and B, C = A B, results in a matrix, C, whose dimensions are n-by-m. Let A represent the 2D input matrix A, B represent the 2D input matrix B, and C represent the 2D output A x B. This node calculates the elements of C using the following equation.
where
If A is an n-by-k matrix and x is a vector with k elements, the multiplication of A and x, y = A x, results in a vector y with n elements. This node calculates the elements of y using the following equation.
where
If X' is a row vector with n elements and A is an n-by-k matrix, the multiplication of X' and A, Y = X'A, results in a row vector Y' with k elements. This node calculates the elements of Y' using the following equation.
and
where
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application