Documentation

ArrayMaximum

The function searches a maximal element in a one-dimension numeric array.

int  ArrayMaximum(
   double  array[],               // array for search
   int     start=0                // index to start checking with
   int     count=WHOLE_ARRAY,     // number of checked elements
   );

Parameters

array[]

[in]  A numeric array, in which search is made.

start=0

[in]  Index to start checking with.

count=WHOLE_ARRAY

[in]  Number of elements for search. By default, searches in the entire array (cnt=WHOLE_ARRAY).

Return Value

The function returns an index of a found element taking into account the array serial. In case of failure it returns -1.