Re: [Numpy-discussion] numarray cov function

2006-08-13 Thread Travis Oliphant
John Hunter wrote: > I was surprised to see that numarray.mlab.cov is returning a rank-0 > complex number when given two 1D arrays as inputs rather than the > standard 2x2 covariance array I am used to seeing. Is this a feature > or a bug? > This was the old behavior of the Numeric cov functi

Re: [Numpy-discussion] numarray cov function

2006-08-13 Thread Travis Oliphant
John Hunter wrote: > I was surprised to see that numarray.mlab.cov is returning a rank-0 > complex number when given two 1D arrays as inputs rather than the > standard 2x2 covariance array I am used to seeing. Is this a feature > or a bug? > > > In [2]: import numarray.mlab as nam > > In [3]: x

[Numpy-discussion] numarray cov function

2006-08-13 Thread John Hunter
I was surprised to see that numarray.mlab.cov is returning a rank-0 complex number when given two 1D arrays as inputs rather than the standard 2x2 covariance array I am used to seeing. Is this a feature or a bug? In [2]: import numarray.mlab as nam In [3]: x = nam.rand(10) In [4]: y = nam.r