InverseMatrix (FPScript)

21.09.2021

Inverts a matrix.

Syntax

InverseMatrix(Matrix)

 

The syntax of the InverseMatrix function consists of the following parts:

Part

Description

Matrix

The data matrix or the signal series, including, if applicable, the Z component, with the matrix to be inverted.

Permitted data structures are data matrix und signal series. All numeric data types are permitted.

Remarks

The unit of the result is the same as the reciprocal of the unit of Matrix. The matrix is passed as a data matrix, where the data series contained therein correspond to the rows. If a signal series with an X component and, possibly, a Z component is passed as an argument, then the Y component is inverted and the X and Z components are adopted.

The result is then of the 64-bit floating point value or 64-bit complex floating point value data type.

Example for a 3x3 matrix:

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Note        Note that the data series in the data matrix are interpreted as the matrix rows, although these are displayed as columns in the data set window. This assignment is required so that the Index operator can be applied for matrices in the order defined in Linear Algebra where the first index value specifies the row and the second one the column.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

InverseMatrix({{1, 2},{3,4}})

Results in the data matrix {{-2, 1}, {1.5, -0.5}}.

See Also

MatrixMultiplication Function

TransposeMatrix Function

Share article or send as email:

You might be interested in these articles