Re: Faster approach for total(data,dimension) possible? [message #67065 is a reply to message #67063] |
Wed, 24 June 2009 06:35   |
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
|
|
|