Wiring Two Arrays to the Multiply Function Does Not Result in Correct Matrix MultiplicationPrimary Software: LabVIEW Development SystemsPrimary Software Version: N/A Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: If I wire two arrays (or vectors or one of each) to the Multiply function, the output does not reflect proper matrix multiplication. Solution: The Multiply function performs simple multiplication, not matrix multiplication. Instead, the function performs per-element multiplication and multiplies the elements in one array by the corresponding elements in the other array. For example, if the first element of array A is 4 and the first element of array B is 2, wiring these two arrays to the Multiply function results in an array that is the same size as A and B whose first element is 8 (4*2). If you want to multiply two matrices to get the correct matrix multiplication, you must use either the A x B VI for two matrices, or the A x Vector VI to matrix multiply a matrix and a vector. Note: To locate these VIs, click the Search button on the Functions palette toolbar. Related Links: Attachments:
Report Date: 01/09/1999 Last Updated: 02/18/2005 Document ID: 1H8GIHG4 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
