comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Using MIN on arrays : Exorcising loops?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Using MIN on arrays : Exorcising loops? [message #27046 is a reply to message #27043] Fri, 05 October 2001 15:13 Go to previous messageGo to previous message
A. D. & J.C. Cool is currently offline  A. D. & J.C. Cool
Messages: 16
Registered: February 2000
Junior Member
> Hi Guys,

Thanks very much for your solutions.

Craig's and Martin's are best suited or my app, especially as it's
on OpenVMS using v5.4, at which OpenVMS is forever stuck.

Dick's idea of v5.5 having a DIM parameter is excellent & almost
certainly functional once you get your 5.5 CD's for Windows & *nix.

And Paul's way off in left field with F90 - I'm cosy with F77, thanks ;-)

Andrew

andrew.cool@dsto.defence.gov.au




>>> It sure would be nice if MIN and MAX had a Dimension parameter, just like
>>> TOTAL has. It would be even nicer if it were coming in 5.5, to be released
>>> Any Day Now, wouldn't it? Too bad that anyone who would know about this
>>> would be bound by a non-disclosure agreement. ;-|
>>
>> In other words, it sure would be nice if IDL could do something like
>> this:
>>
>> IDL> a = indgen(2, 5)
>> IDL> print, a
>> 0 1
>> 2 3
>> 4 5
>> 6 7
>> 8 9
>> IDL> print, min(a, dim=2)
>> 0 1
>> IDL> print, min(a, dim=1)
>> 0 2 4 6 8
>>
>> where the DIM keyword is the dimension number, starting at dimension 1.
>> Maybe this will be supported by MIN and MAX in the not too distant
>> future ;-)
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: CURSOR question
Next Topic: Re: Possibly O/T: printing IDL code in colour -> CAN DO!!!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:23:07 PDT 2025

Total time taken to generate the page: 0.00247 seconds