Re: [Numpy-discussion] Passing numpy arrays to matlab

2006-11-07 Thread David Cournapeau
Josh Marshall wrote: > Hi David, > > Did you have a look at mlabwrap? It's quite hard to find on the net, > which is a shame, since it is a much more up to date version, > enhancing pymat with the things that you are trying to do. It allows > passing arrays and getting arrays back. > > http:/

Re: [Numpy-discussion] Passing numpy arrays to matlab

2006-11-07 Thread David Cournapeau
Pauli Virtanen wrote: > Hi all, > > ti, 2006-11-07 kello 11:23 +0900, David Cournapeau kirjoitti: > >> I am trying to find a nice way to communicate between matlab and >> python. I am aware of pymat, which does that, but the code is >> deprecated, and I thing basing the code on ctypes woul

Re: [Numpy-discussion] "Slicing" recarrays

2006-11-07 Thread Travis Oliphant
Christopher Barker wrote: >Hi all, > >I'm using a recarray to read a bunch of binary data out of a file. It's >working great, but it seems there should be a more efficient way to >"slice" the data. Here's what I've got: > >The binary data is essentially a dump of a 2-d array of structs. So I >r

Re: [Numpy-discussion] Stacking arrays...

2006-11-07 Thread Pau Gargallo
On 11/7/06, Christopher Barker <[EMAIL PROTECTED]> wrote: > HI all, > > I'm trying to get the hang of this new r_ and c_ stuff. > > I need to take two MxN arrays, and stack them together into one MxNx2 > arrays. I found this works: > > >>> a = N.ones((3,4)) > >>> b = N.ones((3,4)) * 2 > >>> a >

Re: [Numpy-discussion] More on Numexpr-unsupported objects

2006-11-07 Thread Tim Hochberg
Ivan Vilata i Balaguer wrote: [SNIP] > > Though I admit it may be strange for this error to be triggered. > > (I had a little mess with using ``expressions.ExpressionNode`` instead > of ``expr.ExpressionNode``... I still don't see why the private copy of > the module is necessary.) > > It's a

Re: [Numpy-discussion] A reimplementation of MaskedArray

2006-11-07 Thread Michael Sorich
On 10/25/06, Pierre GM <[EMAIL PROTECTED]> wrote: > 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 construct

[Numpy-discussion] "Slicing" recarrays

2006-11-07 Thread Christopher Barker
Hi all, I'm using a recarray to read a bunch of binary data out of a file. It's working great, but it seems there should be a more efficient way to "slice" the data. Here's what I've got: The binary data is essentially a dump of a 2-d array of structs. So I read it like this: DataType = N.dty

Re: [Numpy-discussion] Stacking arrays...

2006-11-07 Thread Bill Baxter
dstack maybe? or does that add a dim on the other end?--bbOn 11/8/06, Christopher Barker <[EMAIL PROTECTED] > wrote:HI all,I'm trying to get the hang of this new r_ and c_ stuff. I need to take two MxN arrays, and stack them together into one MxNx2arrays. I found this works: >>> a = N.ones((3,4)) >

Re: [Numpy-discussion] Passing numpy arrays to matlab

2006-11-07 Thread Pauli Virtanen
Hi all, ti, 2006-11-07 kello 11:23 +0900, David Cournapeau kirjoitti: > I am trying to find a nice way to communicate between matlab and > python. I am aware of pymat, which does that, but the code is > deprecated, and I thing basing the code on ctypes would lead to much > more robust code.

Re: [Numpy-discussion] Passing numpy arrays to matlab

2006-11-07 Thread Matthew Brett
Hi, > Thank you very much, I think this added documentation is pretty recent; > I have never seen it before, and I did a lot a mex programming at some > point... This whole mxarray nonsense reminds me why I gave up on matlab :), I would be very happy to help with this. It would be great if we co

[Numpy-discussion] Stacking arrays...

2006-11-07 Thread Christopher Barker
HI all, I'm trying to get the hang of this new r_ and c_ stuff. I need to take two MxN arrays, and stack them together into one MxNx2 arrays. I found this works: >>> a = N.ones((3,4)) >>> b = N.ones((3,4)) * 2 >>> a array([[ 1., 1., 1., 1.], [ 1., 1., 1., 1.], [ 1., 1.

[Numpy-discussion] More on Numexpr-unsupported objects

2006-11-07 Thread Ivan Vilata i Balaguer
This is somehow related with this previous thread about raising ``TypeError`` on unsupported objects in Numexpr: http://www.mail-archive.com/numpy-discussion@lists.sourceforge.net/msg03146.html There is still a case where unsupported objects can get into expressions without Numexpr noticing. For

[Numpy-discussion] help installing numpy1.0 on sgi irix

2006-11-07 Thread IV
Dear All, has anyone successfully install numpy-1.0 on irix 6.5? The GCC is 3.3 and is the latest from freeware.sgi.com. Building gcc 4.1.1 from source did not work for me, and I am afraid to force it. Latest Python 2.5 installed fine from source. Numpy gives this error(s): $ python setup.py in

[Numpy-discussion] numpy on wince

2006-11-07 Thread Emanuele Olivetti
Hi all, do you know if numpy/Numeric is available on WinCE ? I'm thinking about the use of a numpy/Numeric app on a palmtop and I'm not sure it will be deployed on linux only devices. Thanks in advance, Emanuele P.S.: I know that Python is available on many many platforms, but I not so confident

[Numpy-discussion] Warning: message 1Ggbsf-00056T-Ol delayed 48 hours

2006-11-07 Thread Mail Delivery System
This message was created automatically by mail delivery software. A message that you sent has not yet been delivered to one or more of its recipients after more than 48 hours on the queue on externalmx-1.sourceforge.net. The message identifier is: 1Ggbsf-00056T-Ol The subject of the message i