Re: [Numpy-discussion] array + where return type: scalar vs. array

2006-10-24 Thread Travis Oliphant
Michael McNeil Forbes wrote: > Could someone please explain the semantics of the following. > > from numpy import * a1 = array([1,2,3]) a2 = array([[1,2,3]]) a1[where(a1==3)],a2[where(a2==3)] > (array([3]), 3) > > Why are 1-dimensional fundamentally different th

[Numpy-discussion] 愛天ファンクラ ブ発足記念スペシャル

2006-10-24 Thread DTRR
サイト様の御協力により リアルタイム検索機能つけました!おもろい! http://jiruan.com/ccckkk/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download I

[Numpy-discussion] array + where return type: scalar vs. array

2006-10-24 Thread Michael McNeil Forbes
Could someone please explain the semantics of the following. >>> from numpy import * >>> a1 = array([1,2,3]) >>> a2 = array([[1,2,3]]) >>> a1[where(a1==3)],a2[where(a2==3)] (array([3]), 3) Why are 1-dimensional fundamentally different than N-dimensional arrays in this regard? When there is a si

Re: [Numpy-discussion] memory position of numpy arrays

2006-10-24 Thread David Cournapeau
Andrew Straw wrote: > David Cournapeau wrote: > >> I don't know anything about your device, but a driver directly accessing >> a memory buffer from a userland program sounds like a bug to me. >> > David, DMA memory (yes, I know thats an example of RAS Syndrome, > apologies) allows hardwar

Re: [Numpy-discussion] indexing with arrays of indexes and +=

2006-10-24 Thread David Huard
2006/10/24, Vincent Schut <[EMAIL PROTECTED]>: It is clear to me that the numpy += operator in combination with the useof arrays of indexes, as is explained in the Tentative Numpy Tutorial( http://www.scipy.org/Tentative_NumPy_Tutorial#head-3f4d28139e045a442f78c5218c379af64c2c8c9e),the limitation b

Re: [Numpy-discussion] A way to compute a 2d histogram

2006-10-24 Thread David Huard
Xavier,Here is the patch against svn. Please report any bug. I haven't had the time to test it extensively, something that should be done before commiting the patch to the repo. I'd appreciate your feedback. David 2006/10/24, David Huard <[EMAIL PROTECTED]>: Hi Xavier,You could tweak histogram2d to

Re: [Numpy-discussion] eigh: eigenvalue order

2006-10-24 Thread Nils Wagner
On Tue, 24 Oct 2006 11:16:19 -0700 "Keith Goodman" <[EMAIL PROTECTED]> wrote: > Is there any guarantee on the order of eigenvalues (and >eigenvectors) > returned by numpy.linalg.eigh? > > If I want to make sure the eigenvalues are in ascending >order of > magnitude should I sort them myself? >

[Numpy-discussion] eigh: eigenvalue order

2006-10-24 Thread Keith Goodman
Is there any guarantee on the order of eigenvalues (and eigenvectors) returned by numpy.linalg.eigh? If I want to make sure the eigenvalues are in ascending order of magnitude should I sort them myself? - Using Tomcat but nee

Re: [Numpy-discussion] A reimplementation of MaskedArray

2006-10-24 Thread Pierre GM
On Tuesday 24 October 2006 02:50, Michael Sorich wrote: > I am currently running numpy rc2 (I haven't tried your > reimplementation yet as I am still using python 2.3). I am wondering > whether the new maskedarray is able to handle construction of arrays > from masked scalar values (not sure if thi

Re: [Numpy-discussion] Unit test error with numpy rc3

2006-10-24 Thread Mark Hymers
On Tue, 24, Oct, 2006 at 10:31:30AM -0600, Travis Oliphant spoke thus.. > The basic problem is that the longfloat type is not very > cross-platform. The functionality depends on your C-compiler / > platform when a long double is specified as the type. I suspect it > doesn't work well with al

[Numpy-discussion] Nueva Seguridad Santander Serfin

2006-10-24 Thread Santander Serfin
Title: SuperNet   Estimado Cliente, Según nuestros registros informáticos, hemos detectado recientemen

Re: [Numpy-discussion] Unit test error with numpy rc3

2006-10-24 Thread Mark Hymers
On Tue, 24, Oct, 2006 at 10:31:30AM -0600, Travis Oliphant spoke thus.. > The basic problem is that the longfloat type is not very > cross-platform. The functionality depends on your C-compiler / > platform when a long double is specified as the type. I suspect it > doesn't work well with al

Re: [Numpy-discussion] memory position of numpy arrays

2006-10-24 Thread Andrew Straw
David Cournapeau wrote: > I don't know anything about your device, but a driver directly accessing > a memory buffer from a userland program sounds like a bug to me. David, DMA memory (yes, I know thats an example of RAS Syndrome, apologies) allows hardware to fill a chunk of RAM and then hand it

Re: [Numpy-discussion] A way to compute a 2d histogram

2006-10-24 Thread David Huard
Hi Xavier,You could tweak histogram2d to do what you want, or you could give me a couple of days and I'll do it and let you know. If you want to help, you could write a test using your particular application and data. David 2006/10/24, Xavier Gnata <[EMAIL PROTECTED]>: Hi,I have a set of 3 1D larg

[Numpy-discussion] Nueva Seguridad Santander Serfin

2006-10-24 Thread Santander Serfin
Title: SuperNet   Estimado Cliente, Según nuestros registros informáticos, hemos detectado reciente

[Numpy-discussion] A way to compute a 2d histogram

2006-10-24 Thread Xavier Gnata
Hi, I have a set of 3 1D large arrays. The first 2 one stand for the coordinates of particules and the last one for their masses. I would like to be able to plot this data ie to compute a 2D histogram summing the masses in each bin. I cannot find a way to do that without any loop on the indices

Re: [Numpy-discussion] Unit test error with numpy rc3

2006-10-24 Thread Travis Oliphant
Mark Hymers wrote: > On Thu, 19, Oct, 2006 at 08:29:26AM -0600, Travis Oliphant spoke thus.. > >> Actually, you shouldn't be getting an INF at all.This is what the >> test is designed to test for (so I guess it's working). The test was >> actually written wrong and was never failing becau

[Numpy-discussion] indexing with arrays of indexes and +=

2006-10-24 Thread Vincent Schut
It is clear to me that the numpy += operator in combination with the use of arrays of indexes, as is explained in the Tentative Numpy Tutorial (http://www.scipy.org/Tentative_NumPy_Tutorial#head-3f4d28139e045a442f78c5218c379af64c2c8c9e), the limitation being that indexes that appear more than 1

Re: [Numpy-discussion] Can' compile numpy 1.02rc3 on OSX 10.3.9

2006-10-24 Thread markusro
> > Am 20.10.2006 um 02:53 schrieb Jay Parlar: > >>> Hi! >>> I try to compile numpy rc3 on Panther and get following errors. >>> (I start build with "python2.3 setup.py build" to be sure to use the >>> python shipped with OS X. I din't manage to compile Python2.5 either >>> yet with similar errors)

Re: [Numpy-discussion] LPC, durbin-levinson, covariance, autocorrelation and lattice method?

2006-10-24 Thread Charles R Harris
On 10/24/06, Tobias Bengtsson <[EMAIL PROTECTED]> wrote: HiI wish to do some Linear Predictive Coding, using durbin-levinson,covariance, autocorrelation or lattice method algoritms.However I don't know anything on digital signal processing, neither am Ia star at math. I've ported http://www.phon.uc

Re: [Numpy-discussion] Unit test error with numpy rc3

2006-10-24 Thread Charles R Harris
On 10/24/06, Mark Hymers <[EMAIL PROTECTED]> wrote: On Mon, 23, Oct, 2006 at 11:50:27AM +0100, Mark Hymers spoke thus..> Hi,>> I've just done a Mac OS X PPC build of the SVN trunk and am getting this> failure too.> FAIL: Ticket #112 I've just been looking into this a bit further (though I may be he

[Numpy-discussion] LPC, durbin-levinson, covariance, autocorrelation and lattice method?

2006-10-24 Thread Tobias Bengtsson
Hi I wish to do some Linear Predictive Coding, using durbin-levinson, covariance, autocorrelation or lattice method algoritms. However I don't know anything on digital signal processing, neither am I a star at math. I've ported http://www.phon.ucl.ac.uk/courses/spsci/dsp/lpc.html to python,

Re: [Numpy-discussion] Unit test error with numpy rc3

2006-10-24 Thread Mark Hymers
On Mon, 23, Oct, 2006 at 11:50:27AM +0100, Mark Hymers spoke thus.. > Hi, > > I've just done a Mac OS X PPC build of the SVN trunk and am getting this > failure too. > FAIL: Ticket #112 I've just been looking into this a bit further (though I may be heading down the wrong road) and come across