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



MaxArray


Unit:SDL_openarrays
Class: none
Declaration: [1] function MaxArray (Arr: TIntArray): integer;
[2] function MaxArray (Arr: TIntArray; var ix: integer): integer;
[3] function MaxArray (Arr: TInt2DArray): integer;
[4] function MaxArray (Arr: TInt2DArray; var ix, iy: integer): integer;
[5] function MaxArray (Arr: TDoubleArray): double;
[6] function MaxArray (Arr: TDouble2DArray): double;
[7] function MaxArray (Arr: TDouble3DArray): double;
[8] function MaxArray (Arr: TDouble4DArray): double;

The function MaxArray returns the maximum value of the array Arr. If the array Arr is nil or empty -MaxInt-1 is returned by versions [1] to [4] and -uc_MaxDouble by the other versions of the function.

Versions [2] and [4] return the indices of the found maximum in the variable parameters ix and iy.


Last Update: 2017-Nov-01