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

Home » Public Forums » archive » Re: Fast matrix filling in IDL
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: Fast matrix filling in IDL [message #13787 is a reply to message #13780] Mon, 14 December 1998 00:00 Go to previous messageGo to previous message
Kevin Ivory is currently offline  Kevin Ivory
Messages: 71
Registered: January 1997
Member
> Stein Vidar Hagfors Haugan (steinhh@ulrik.uio.no) writes:
>>
>> A slight modification of David's program, and adding
>> my favourite speedup method:
>>
>> time = systime(1)
>> array = rebin(reform(v,m,1,/overwrite),m,n,/sample)
>> print, 'Time for Rebin Operations: ', systime(1) - time
>>
>> On { alpha OSF unix 5.2 Oct 30 1998}, this gives:
>>
>> Time for Loop: 0.27343702
>> Time for Matrix Operations: 0.093750000
>> Time for Rebin Operations: 0.067382932
>>
>> Note that the relative speeds can vary quite a lot on
>> different architectures.

David Fanning wrote:
>
> IDL> Print, !Version
> { x86 Win32 Windows 5.2 Oct 30 1998}
> IDL> test
> Time for Loop: 0.10000002
> Time for Matrix Operations: 0.019999981
> Time for Rebin Operations: 0.039999962
>
> The Rebin operations are twice as slow as the matric operations.
> Hummm. Why!?

Wow, this is fun. Linux is infinitely faster on matrix and rebin, but
*real* slow on loops:

IDL> Print, !Version
{ x86 linux unix 5.2 Oct 30 1998}
IDL> test
Time for Loop: 1.0000000
Time for Matrix Operations: 0.0000000
Time for Rebin Operations: 0.0000000

??? Am I missing something?
Kevin
--
Kevin Ivory Tel: +49 5556 979 434
Max-Planck-Institut fuer Aeronomie Fax: +49 5556 979 240
Max-Planck-Str. 2 mailto:Kevin@Ivory.de
D-37191 Katlenburg-Lindau, GERMANY http://ivory.de/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: probability scale on 2D line plot?
Next Topic: Re: GEO TIFF read/write ?

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

Current Time: Sat Oct 11 15:06:58 PDT 2025

Total time taken to generate the page: 1.67901 seconds