Get the minimum value of an array
result = min (Array_Type a [,Int_Type dim])
The min function examines the elements of a numeric array and
returns the value of the smallest 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 min(a) will return 1, and min(a,0) will return
a 1-d array with elements
|