MINLOC— Location of the minimum value within an array
Determines the location of the element in the array with the minimum
value, or, if the DIM argument is supplied, determines the
locations of the minimum element along each row of the array in the
DIM direction. If MASK is present, only the elements for
which MASK is
.TRUE. are considered. If more than one
element in the array has the minimum value, the location returned is
that of the first such element in array element order if the
BACK is not present, or is false; if BACK is true, the location
returned is that of the last such element. If the array has
zero size, or all of the elements of MASK are
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.
Fortran 90 and later; ARRAY of
CHARACTER and the
KIND argument are available in Fortran 2003 and later.
The BACK argument is available in Fortran 2008 and later.
|ARRAY||Shall be an array of type |
|DIM||(Optional) Shall be a scalar of type
|MASK||Shall be of type |
|KIND||(Optional) An |
|BACK||(Optional) A scalar of type |
If DIM is absent, the result is a rank-one array with a length equal to the rank of ARRAY. If DIM is present, the result is an array with a rank one less than the rank of ARRAY, and a size corresponding to the size of ARRAY with the DIM dimension removed. If DIM is present and ARRAY has a rank of one, the result is a scalar. If the optional argument KIND is present, the result is an integer of kind KIND, otherwise it is of default kind.
FINDLOC, MIN, MINVAL