|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home MathPack OpenArrays Procedures and Functions InvertArray|
|See also: Invert, CalcHatMatrix|
The function InvertArray inverts the array Arr. Please keep in mind that inverting a boolean array (versions  and ) is completely different to inverting a (square) numeric array (version ).
Versions  and :
The inversion of boolean arrays is done cell by cell by exchanging TRUE and FALSE values. The function returns the following error codes:
0 ... everything is OK
The inversion of a numeric array means calculating the inverse matrix of the (square) array Arr. The inverse matrix is stored on top of the original data (thereby destroying the original contents). The matrix inversion is carried out using the LU-decomposition procedure (decomposition into two triangle matrices). It must not be applied to non-quadratic matrices.
The function returns the following error codes:
0 ... everything is OKIn the case of a non-zero return code the resulting matrix is undefined.
Version  increments the global variable ProcStat and calls the feedback routine MathFeedBackProc in order to allow feedback to the user during time consuming calculations. The InvertArray function can be terminated by setting the global variable AbortMathProc to TRUE.