Next: MAXVAL, Previous: MAXEXPONENT, Up: Intrinsic Procedures
MAXLOC
— Location of the maximum value within an array.TRUE.
are considered. If more than one
element in the array has the maximum value, the location returned is
that of the first such element in array element order. If the array has
zero size, or all of the elements of MASK are .FALSE.
, then
the result is an array of zeroes. Similarly, if DIM is supplied
and all of the elements of MASK along a given row are zero, the
result value for that row is zero.
RESULT = MAXLOC(ARRAY, DIM [, MASK])
|
RESULT = MAXLOC(ARRAY [, MASK])
|
ARRAY | Shall be an array of type INTEGER(*) ,
REAL(*) , or CHARACTER(*) .
|
DIM | (Optional) Shall be a scalar of type
INTEGER(*) , with a value between one
and the rank of ARRAY, inclusive. It
may not be an optional dummy argument.
|
MASK | Shall be an array of type LOGICAL(*) ,
and conformable with ARRAY.
|
INTEGER
type.