Array Max & Min

Searches for the first maximum and minimum values in numeric array. This function also returns the indices where it finds the maximum and minimum values. The connector pane displays the default data types for this polymorphic function. Details

array can be an n-dimensional array of any type.
max value is of the same data type as the elements in numeric array.
max index is the index for the first max value. If numeric array is multidimensional, max index is an array whose elements are the index for the corresponding dimension in numeric array.
min value is of the same data type as the elements in numeric array.
min index is the index for the first min value. If numeric array is multidimensional, min index is an array whose elements are the index for the corresponding dimension in numeric array.

Array Max & Min Details

The function compares each data type according to the rules for Array Comparison.

If a numeric array has one dimension, the max index and min index outputs are scalar integers. If a numeric array has more than one dimension, these outputs are 1D arrays that contain the indices of the maximum and minimum values.