[Numpy-discussion] convolve

Alan G Isaac aisaac at american.edu
Wed Jul 27 13:09:17 EDT 2005


On Wed, 27 Jul 2005, René Bastian apparently wrote: 
> Outcommenting
> if len(data) < len(kernel):
>    data, kernel = kernel, data
> in convolve.py gives the correct result. 


The author is not listed for this numarray module,
so we cannot directly ask why this behavior was chosen.
You might use Numeric.convolve instead of
numarray.convolve.Convolve.convolve:
Numeric gives the expected result here.

fwiw,
Alan Isaac








More information about the NumPy-Discussion mailing list