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

Home » Public Forums » archive » Re: Faster approach for total(data,dimension) possible?
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: Faster approach for total(data,dimension) possible? [message #67036 is a reply to message #67032] Thu, 25 June 2009 05:10 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
>
>> chris
>
> Dear Chris
> it's me, Chris :) Back to topic: That may be, but nevertheless there
> are routines missing, which can compare a 3D matrix with a 1D vector
> simply and fast. Any other ideas?
>

Check your assumptions. The ideas suggested are all completely
vectorized IDL code and have the same speed to an order of
magnitude. They have some unnecessary computations because every
pixel in each band is checked even if one already knows the column
contains non-zero elements. This should slow the routines down by
about a factor of two from an ideal method.

But if the existing code takes less than a second on all the machines
tested, and takes several minutes on your user's machine, then I would
take a very close look as to whether it is really this section of code
that is causing the problem. --Wayne
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: bar_plot and ploterr
Next Topic: Re: Envi virtual machine

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

Current Time: Wed Oct 08 20:14:10 PDT 2025

Total time taken to generate the page: 0.22087 seconds