In a message dated 5/14/98 7:15:48 AM Pacific Daylight Time,
[log in to unmask] writes:
Thanks for both suggestions. Both, however, are likely to
create large temporary arrays
_____________________________
There are enough such situations that the compiler writers should be motivated
to find a way to optimize them e.g.
MAXLOC(ABS(X(1:n)))
isn't too slow on the SGI 7.2 compiler, although it is dead slow on some
others. Supposing that such expressions expand initially into a sequence of
DO loops, a decent optimizer should be able to fuse them and come up with
reasonable results.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|