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



MinArray


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

The function MinArray returns the minimum value of the array Arr. If the array Arr is nil or empty MaxInt is returned by versions [1] to [6] and uc_MaxDouble by the other versions of the function.

Versions [2], [4], [8] and [10] return the indices of the found minimum in the variable parameters ix and iy.



Last Update: 2023-Feb-06