Error getting tags :
error 404Error getting tags :
error 404 matrixMultiply | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
matrixMultiply
Basics
Expander triangle
Type
Function
Syntax
matrixMultiply(firstArray,secondArray)
Introduced
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the matrix product of two arrays.
Examples

put matrixMultiply(currentLevels,levelAdjustments)

Additional Comments
Expander triangle

Use the matrixMultiply function to perform matrix multiplication.

Parameters:

The firstArray and secondArray are both two-dimensional array variables whose elements are numbers, and whose keys are sequential numbers.

Value:

The matrixMultiply function returns an array of numbers.

Comments:

A two-dimensional array is an array whose elements have a two-part key to describe them. You can visualize such an array as a set of rows and columns: the first part of each element's key is the row number, and the second part is the column number. For example, the expression myArray[3,2] describes the element of myArray which is in the third row, second column.

The matrix product of two arrays is itself an array. Each element myArray[M,N] of the product is obtained by multiplying each element of the Mth row by the corresponding element of the Nth column. The resulting numbers are added together to obtain the element in the Mth row and Nth column.

The number of rows in the firstArray must be the same as the number of columns in the secondArray, and the number of rows in the secondArray must match the number of columns in the firstArray. However, the number of rows in the firstArray and secondArray need not be the same.

User Comments
Expander triangle