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

Home » Public Forums » archive » Re: Using "the IDL way" and it's still not fast enough
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 "the IDL way" and it's still not fast enough [message #83707 is a reply to message #83705] Wed, 27 March 2013 09:14 Go to previous messageGo to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
On Wednesday, March 27, 2013 7:42:58 AM UTC-7, KenBowman wrote:
> I don't think so. In IDL the first array index varies fastest (is
> contiguous in memory).

That's correct. Just for posterity, here is the test I did to show just how much faster it is to MIN along the first dimension:

IDL> qq=indgen(3,3,3,3,120e3)
IDL> t0=systime(1) & for i=0,100 do null=min(qq,dim=5) & print,systime(1)-t0
39.741640
IDL> qq2=transpose(qq,[4,0,1,2,3])
IDL> t0=systime(1) & for i=0,100 do null=min(qq2,dim=1) & print,systime(1)-t0
2.0115819

--Edward H.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: volume() command
Next Topic: Regression fit and random noise

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

Current Time: Fri Oct 10 04:29:34 PDT 2025

Total time taken to generate the page: 0.95745 seconds