InvertLU (FUN)ΒΆ

FUNCTION InvertLU : ResultCode

Inverts a quadratic regular matrix A: B := A^(-1).
The matrix A is modified in-place and contains the LU-decomposition after
the call.

We use an LU-decomposition that is computed using gaussian elimination.
See DecomposeLU.

Note: A and B must be matrices with distinct storage.
InOut:

Scope

Name

Type

Comment

Return

InvertLU

ResultCode

Inout

A

Matrix

The matrix to invert, must be a regular n x n matrix

B

Matrix

The inverted matrix is stored here. B must have the same dimensions as A

Input

padiPCol

POINTER TO DINT

The permutation of the columns, pointer to an array of at least n elements.