> Date: Sun, 12 Dec 2004 13:33:36 -0800
> From: Vivek Rao <[log in to unmask]>
> 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.
It's easy enough to write a function to do this (or even inline code).
> Comments?
|