From: Travis O. <oli...@ie...> - 2006-08-13 21:35:03
|
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 function which numarray borrowed. We changed the behavior of cov in NumPy because it makes more sense to return the full covariance matrix in this case. -Travis |