Vivek Rao wrote:
>
> I wish there were a MATCH(IVAL,ARRAY,[DIM],[MASK]) intrinsic function
> in Fortran, patterned after MINLOC, that would return the location of
> the first element of ARRAY having the same value as IVAL . It would be
> most useful for arrays of type integer, character, and logical. For a
> real ARRAY, the user could specify the tolerance used to define
> equality. If there were no match, an array of zeros would be returned.
>
> Comments?
>
The FINDLOC function, which is planned for the successor of Fortran
2003, will provide for this useful functionality.
Best regards,
Jean Vezina
|