Print

Print


Daniel and Nicola Grimwood wrote:
> Hi,
>
> can someone tell me why the maxloc() function doesn't take logical arrays,
> only real or integer?  I've already written my own version (using do loops),
> but am curious why it doesn't already exist seeing it should be easier than
> for real and integer.

In your implementation, is .true. greater than .false. or vice-versa?
There is no answer according to the standard (or any other language
I'm familiar with).

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies."   --  C. A. R. Hoare