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 #67065 is a reply to message #67063] Wed, 24 June 2009 06:35 Go to previous messageGo to previous message
Chris[6] is currently offline  Chris[6]
Messages: 84
Registered: July 2008
Member
On Jun 24, 2:12 am, chris <rog...@googlemail.com> wrote:
> Dear Wayne,
> thank you! My code runs for a [1536,231,126] sample also very fast -
> in 0.13 sec, but it's not for me. At a colleague's PC it lasts minutes
> without caching the matrix to swap and he asked me for a possible
> speedup. Unfortunately, I don't know which could be faster than
> total...  I cannot understand, why the fastest method to determine
> whether a vector is entirely set to zero is based on total - a sum
> method...  I tried to increase speed by the use of the gpulib, but
> also got the same effect. Any other ideas?
>
> Best regards
>
> CR

did you try something like max(data, dimen = 3)?

chris
[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: Sat Oct 11 08:22:32 PDT 2025

Total time taken to generate the page: 0.15875 seconds