FINDLOC
— Search an array for a value.TRUE.
are
considered. If more than one element in the array has the value
VALUE, the location returned is that of the first such element
in array element order if the BACK is not present or if it 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 .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 = FINDLOC(ARRAY, VALUE, DIM [, MASK] [,KIND] [,BACK])
|
RESULT = FINDLOC(ARRAY, VALUE, [, MASK] [,KIND] [,BACK])
|
ARRAY | Shall be an array of intrinsic type.
|
VALUE | A scalar of intrinsic type which is in type
conformance with ARRAY.
|
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.
|
KIND | (Optional) An INTEGER initialization
expression indicating the kind parameter of the result.
|
BACK | (Optional) A scalar of type LOGICAL .
|