|
From: Alan G I. <ai...@am...> - 2005-07-28 01:18:23
|
>> On Wed, 27 Jul 2005, Robert Kern apparently wrote:=20
>>> I do not see the behavior Ren=E9 is claiming. Perhaps Ren=E9=20
>>> can tell us what version of numarray he is using?=20
> Alan G Isaac wrote:=20
>> I see it in version 1.1,=20
>> for the example he provided.=20
On Wed, 27 Jul 2005, Robert Kern apparently wrote:=20
> What example? Either his message has not yet propogated to me or the=20
> mailing list archives, or he sent it to you privately. The problem does=
=20
> not seem to exist any longer in CVS.=20
My bad.
It was indeed off list.
It is (essentially) replicated below.
Alan
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#-*-coding:latin-1-*-
#from Numeric import arrayrange,asarray
#from Numeric import convolve
from numarray import arrayrange,asarray
from numarray.convolve.Convolve import convolve
=20
def explo0():
a=3Darrayrange(10.)
b=3Dasarray([1., 0., 2., -1., 3., -2.])
c=3Dconvolve(a, b)
print c
d=3Dconvolve(b, a)
print d
=20
if __name__=3D=3D"__main__":
explo0()
|