L_UMTP_Invert2x2

This function inverts a 2x2-Matrix.

To improve computing performance, the input matrix alrM and the result alrMinv are passed as VAR_IN_OUT. The memory for alrMinv must be provided in the application.

 

 

 

L_UMTP_Invert2x2

 

 

 

ARRAY[1..2, 1..2] OF LREAL

-

alrM

ARRAY[1..2, 1..2] OF LREAL

-

alrMinv

 

 

 

 

 

 

 

 

Inputs and outputs

Name

Data type

Information/possible settings

alrM

ARRAY[1..2, 1..2] OF LREAL

Matrix

This variable is read-only.

alrMinv

ARRAY[1..2, 1..2] OF LREAL

Resulting inverse matrix

Write access is made to this variable.

Outputs

Name

Data type

Value/meaning

L_UMTP_Invert2x2

BOOL

TRUE

The matrix was successfully inverted.

FALSE

The matrix alrM is singular and cannot be inverted.