[Numpy-discussion] Does Numpy's covariance function numpy.cov() work for complex data?
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()) ) -- Rudolph van der Merwe ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Scipy release
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 = ScipyTest().test These are the latest downloadable versions right? I'm beginning to wonder whether I shouldn't start building scipy myself. Thanks, John. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] What is an empty matrix ?
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 ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion empty(...) empty((d1,...,dn),dtype=float,order='C') Return a new array of shape (d1,...,dn) and given type with all its entries uninitialized. This can be faster than zeros. Nils ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Scipy release
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, Paris (France) Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science Reprise et maintenance de sites CPS: http://www.migration-cms.com/ signature.asc Description: Digital signature ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] What is an empty matrix ?
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 import append def myfunc(arr, arr2 = numpy.array(())) assert(arr.ndim==1 and arr2.ndim==1) return append(arr, arr2, 1) HTH, Dmitrey 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 ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] What is an empty matrix ?
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 Empty input to an algorithm can often be handled naturally by empty matrices in the implementation. Quite often I find that if I've coded things right, the boundary empty input case is handled naturally in this way. I would prefer that no functions crashed when passed empty matrices. Just my 2 cents, John. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] [SciPy-dev] numpy.cumproduct() documentation: bug?
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 Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion