[SciPy-User] Vectorised convolution

Warren Weckesser warren.weckesser@enthought....
Tue Aug 2 07:47:53 CDT 2011


On Tue, Aug 2, 2011 at 1:35 AM, Jason Heeris <jason.heeris@gmail.com> wrote:
> On 2 August 2011 10:57, Warren Weckesser <warren.weckesser@enthought.com>
> wrote:
>>
>> I show one way to do this in the following SciPy cookbook entry:
>
> Interesting — I just tried that approach and found that it was actually
> slower than the looped version, which seems weird.
> But the convolve1d version works great (less than a tenth of the time as my
> loop) and the lfilter version is almost as good.


That's good to know.  I just updated
http://www.scipy.org/Cookbook/ApplyFIRFilter to include
ndimage.convolve1d.

Warren


> Thanks,
> Jason
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>


More information about the SciPy-User mailing list