matrixMultiply

returns the matrix product of two arrays.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.1 Security:

# Syntax

matrixMultiply(firstArray, secondArray)

# Params

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

# Examples

put matrixMultiply(currentLevels,levelAdjustments)

# Description

Use the matrixMultiply function to perform matrix multiplication.

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 number of columns in the firstArray must be the same as the number of rows in the secondArray. There are no other constraints in order for the multiplication to succeed.

# Tags

# See

- **keyword:** element - **command:** multiply - **function:** extents, transpose - **control structure:** function - **glossary:** array, return