[Numpy-discussion] Does Numpy's covariance function numpy.cov() work for complex data?

2007-07-04 Thread Rudolph van der Merwe
Does anyone know if Numpy's covariance calculation function, cov(), which is located in /numpy/lib/function_base.py calculate the covariance matrix of complex data correctly? I.e., does it implement something like , P = cov(X) = 1/(N-1) * \Sum_i ( X[:,i] * transpose(X[:,i].conj()) ) --

[Numpy-discussion] Scipy release

2007-07-04 Thread John Reid
Hi, Is there going to be a scipy release anytime soon? I'm using numpy 1.0.3 with scipy 0.5.2 and I get these ugly warnings all the time: c:\apps\python25\lib\site-packages\scipy\misc\__init__.py:25: DeprecationWarning: ScipyTest is now called NumpyTest; please update your code test =

Re: [Numpy-discussion] What is an empty matrix ?

2007-07-04 Thread Nils Wagner
David Cournapeau wrote: Hi, I was wondering what an empty matrix is, and what it is useful for (by empty matrix, I mean something created by numpy.matrix([])) ? Using those crash some functions (see for example scipy ticket #381), and I am not sure how to fix this bug. David

Re: [Numpy-discussion] Scipy release

2007-07-04 Thread Alexandre Fayolle
On Wed, Jul 04, 2007 at 11:59:28AM +0100, John Reid wrote: Ok I'll try that although I guess that it turns off all warnings. that It does. See the documentation of the warnings module for the full syntax and fine grained control. -- Alexandre Fayolle LOGILAB,

Re: [Numpy-discussion] What is an empty matrix ?

2007-07-04 Thread dmitrey
As for me, I used empty matrices in MATLAB as well as python rather often. Simple example: from numpy import array, hstack #... m = A.shape[1] a = array(()).reshape(0,m) for i in some_ind: a = hstack((a, A[i])) for i in some_ind2: a = hstack((a, Aeq[i])) return a other example: from numpy

Re: [Numpy-discussion] What is an empty matrix ?

2007-07-04 Thread John Reid
David Cournapeau wrote: Hi, I was wondering what an empty matrix is, and what it is useful for (by empty matrix, I mean something created by numpy.matrix([])) ? Using those crash some functions (see for example scipy ticket #381), and I am not sure how to fix this bug. David

Re: [Numpy-discussion] [SciPy-dev] numpy.cumproduct() documentation: bug?

2007-07-04 Thread Alan G Isaac
On Wed, 04 Jul 2007, dmitrey apparently wrote: cumproduct(x, axis=None, dtype=None, out=None) Sum the array over the given axis. Docstring bug. But it behaves right. Cheers, Alan Isaac ___ Numpy-discussion mailing list