Re: [Numpy-discussion] Complex128

2010-07-20 Thread Scott Sinclair
On 19 July 2010 10:23, Pauli Virtanen p...@iki.fi wrote: Sun, 18 Jul 2010 21:15:15 -0500, Ross Harder wrote: mac os x leopard 10.5.. EPD installed i just don't understand why i get one thing when i ask for another. i can get what i want, but only by not asking for it. Do you get the same

Re: [Numpy-discussion] Crosstabulation

2010-07-20 Thread Vincent Schut
On 07/19/2010 10:14 PM, Friedrich Romstedt wrote: 2010/7/19 sandric ionutsandricio...@yahoo.com: For land-use a class would be for example forest, other would be orchard etc. For Slope gradient I would have values which3 and between 3 and 7 etc. So, I will have 2 raster data with, let's say,

Re: [Numpy-discussion] lstsq functionality

2010-07-20 Thread Skipper Seabold
On Tue, Jul 20, 2010 at 1:08 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:40 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 8:27 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:02 PM, Keith Goodman

Re: [Numpy-discussion] Stacking arrays along new dimension in front

2010-07-20 Thread Keith Goodman
On Tue, Jul 20, 2010 at 7:24 AM, Skipper Seabold jsseab...@gmail.com wrote: On Tue, Jul 20, 2010 at 5:11 AM, Gael Varoquaux gael.varoqu...@normalesup.org wrote: Is there in numpy a function that does:    np.concatenate([a_[np.newaxis] for a_ in a]) ? ie: add a dimension in front and stack

Re: [Numpy-discussion] Stacking arrays along new dimension in front

2010-07-20 Thread Skipper Seabold
On Tue, Jul 20, 2010 at 10:35 AM, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Tue, Jul 20, 2010 at 10:24:56AM -0400, Skipper Seabold wrote: Will one of the stack functions do?  I take it your a looks something like a = [np.arange(1000), np.arange(1000), np.arange(1000)]

Re: [Numpy-discussion] lstsq functionality

2010-07-20 Thread Charles R Harris
On Tue, Jul 20, 2010 at 8:32 AM, Skipper Seabold jsseab...@gmail.comwrote: On Tue, Jul 20, 2010 at 1:08 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:40 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 8:27 PM, Charles R Harris

Re: [Numpy-discussion] Numpy 1.4.1 fails to build on (Debian) alpha and powepc

2010-07-20 Thread David Cournapeau
On Tue, Jul 20, 2010 at 4:21 PM, Sandro Tosi mo...@debian.org wrote: Hi David, On Tue, Jul 20, 2010 at 10:34, David Cournapeau courn...@gmail.com wrote: yes, I see it at r8510 I quickly adapted the code from the Sun math library for the linux ppc long double format. Let me know if it works

Re: [Numpy-discussion] lstsq functionality

2010-07-20 Thread Skipper Seabold
On Tue, Jul 20, 2010 at 11:23 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jul 20, 2010 at 8:32 AM, Skipper Seabold jsseab...@gmail.com wrote: On Tue, Jul 20, 2010 at 1:08 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:40 PM, Keith

[Numpy-discussion] Complete and build the example from the Using Numpy C-API documentation.

2010-07-20 Thread Warren Weckesser
I would like to take the example shown here: http://docs.scipy.org/doc/numpy/user/c-info.how-to-extend.html#example and complete the code so I can build and test the extension module. Is that example currently correct? It is slightly different from the older example in the numpy book, so

Re: [Numpy-discussion] Complete and build the example from the Using Numpy C-API documentation.

2010-07-20 Thread Warren Weckesser
Warren Weckesser wrote: I would like to take the example shown here: http://docs.scipy.org/doc/numpy/user/c-info.how-to-extend.html#example and complete the code so I can build and test the extension module. Is that example currently correct? It is slightly different from the older

Re: [Numpy-discussion] numpy.fft, yet again

2010-07-20 Thread David Goldsmith
On Thu, Jul 15, 2010 at 9:41 AM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Thu, Jul 15, 2010 at 3:20 AM, Martin Raspaud martin.rasp...@smhi.sewrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Goldsmith skrev: Interesting comment: it made me run down the fftpack

Re: [Numpy-discussion] numpy.fft, yet again

2010-07-20 Thread Charles R Harris
On Tue, Jul 20, 2010 at 6:02 PM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Thu, Jul 15, 2010 at 9:41 AM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Thu, Jul 15, 2010 at 3:20 AM, Martin Raspaud martin.rasp...@smhi.sewrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: [Numpy-discussion] numpy.fft, yet again

2010-07-20 Thread David Cournapeau
On Wed, Jul 21, 2010 at 2:02 AM, David Goldsmith d.l.goldsm...@gmail.com wrote: On Thu, Jul 15, 2010 at 9:41 AM, David Goldsmith d.l.goldsm...@gmail.com wrote: On Thu, Jul 15, 2010 at 3:20 AM, Martin Raspaud martin.rasp...@smhi.se wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: [Numpy-discussion] numpy records in C

2010-07-20 Thread Erin Sheldon
On Mon, Jul 19, 2010 at 4:28 PM, Caius Howcroft caius.howcr...@gmail.com wrote: Hi all I'm playing with writing some C code to speed up an inner loop in my python code. This loop operates on a numpy record, e.g. soemthing like this: a = numpy.zeros((10,), dtype=[(myfvalue ,float), (myc,

Re: [Numpy-discussion] lstsq functionality

2010-07-20 Thread Keith Goodman
On Mon, Jul 19, 2010 at 10:08 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:40 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 8:27 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:02 PM, Keith

Re: [Numpy-discussion] numpy.fft, yet again

2010-07-20 Thread Charles R Harris
On Tue, Jul 20, 2010 at 7:28 PM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Tue, Jul 20, 2010 at 5:47 PM, David Cournapeau courn...@gmail.comwrote: On Wed, Jul 21, 2010 at 2:02 AM, David Goldsmith d.l.goldsm...@gmail.com wrote: On Thu, Jul 15, 2010 at 9:41 AM, David Goldsmith

Re: [Numpy-discussion] lstsq functionality

2010-07-20 Thread Keith Goodman
On Tue, Jul 20, 2010 at 6:35 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 10:08 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:40 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 8:27 PM, Charles R Harris