[Numpy-discussion] convolve

Alan G Isaac aisaac at american.edu
Wed Jul 27 18:19:04 EDT 2005


>> On Wed, 27 Jul 2005, Robert Kern apparently wrote: 
>>> I do not see the behavior René is claiming. Perhaps René 
>>> can tell us what version of numarray he is using? 

> Alan G Isaac wrote: 
>> I see it in version 1.1, 
>> for the example he provided. 

On Wed, 27 Jul 2005, Robert Kern apparently wrote: 
> What example? Either his message has not yet propogated to me or the 
> mailing list archives, or he sent it to you privately. The problem does 
> not seem to exist any longer in CVS. 

My bad.
It was indeed off list.
It is (essentially) replicated below.
Alan


==================================================

#-*-coding:latin-1-*-
#from Numeric import arrayrange,asarray
#from Numeric import convolve
from numarray import arrayrange,asarray
from numarray.convolve.Convolve import convolve
 
def explo0():
    a=arrayrange(10.)
    b=asarray([1., 0., 2., -1., 3., -2.])
    c=convolve(a, b)
    print c
    d=convolve(b, a)
    print d

  
if __name__=="__main__":
    explo0()





More information about the NumPy-Discussion mailing list