[Numpy-discussion] convolve

Alan G Isaac aisaac at american.edu
Wed Jul 27 13:09:17 CDT 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
Numeric gives the expected result here.

Alan Isaac

More information about the Numpy-discussion mailing list