Get the maximum value of an array
result = max (Array_Type a [,Int_Type dim])
The max function examines the elements of a numeric array and
returns the value of the largest element. If a second argument is
given, then it specifies the dimension of the array to be searched.
In this case, an array of dimension one less than that of the input array
will be returned with the corresponding elements in the specified
dimension replaced by the minimum value in that dimension.
Consider the 2-d array
generated by
a = _reshape ([1:10], [2, 5]);
Then max(a) will return 10, and max(a,0) will return
a 1-d array with elements
|