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....


Class: none
Declaration: [1] function TraceOfArray (Arr: TInt2DArray; var TrVal: double): integer;
[2] function TraceOfArray (Arr: TDouble2DArray; var TrVal: double): integer;

The function TraceOfArray returns the trace of the quadratic array Arr in the parameter TrVal.

The function returns the following error codes:

 0 ... everything is OK
-1 ... Arr has size zero
-2 ... Arr is not a square matrix

Last Update: 2017-Nov-25