[Numpy-discussion] Problem with correlate?

Hanno Klemm klemm at phys.ethz.ch
Fri Aug 22 07:23:19 EDT 2008


Hi Stefan,

I checked it with numpy version 1.1.1 just now and the result is the same:

>>> x = N.array([0.,0,1,0,0])
>>> y1 = N.array([1.,0,0,0,0])
>>> N.correlate(x,y1, mode='full')
array([ 0.,  0.,  0.,  0.,  0.,  0.,  1.,  0.,  0.])
>>> y2 = N.array([1.,0,0,0,0,0,0])
>>> N.correlate(x,y2, mode='full')
array([ 0.,  0.,  1.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.])
>>> N.__version__
'1.1.1'
>>>

Best regards,
Hanno

Stéfan van der Walt <stefan at sun.ac.za> said:

> Hi Hanno
> 
> 2008/8/22 Hanno Klemm <klemm at phys.ethz.ch>:
> > yes, indeed, that's what I thought. This result is odd. Has correlate
> > been changed since version 1.0.4, or should I submit this as a bug?
> 
> Is there any way that you could try out the latest release on your
> machine and see if it solves your problem?  We probably won't be
> releasing bug-fixes on 1.0.4, but if it exists in 1.1 we'll still
> address it.  I'm not aware of any changes, but I may simply have
> missed it.
> 
> Regards
> Stéfan
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
> 



-- 
Hanno Klemm
klemm at phys.ethz.ch





More information about the NumPy-Discussion mailing list