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

2006-11-08 Thread David Cournapeau
Josh Marshall wrote: > > > I don't see how you are going to get around doing the copies. Matlab > is in a separate process from the Python interpreter, and there is no > shared memory. In what way do you want these proxy classes to "look > like numpy arrays"? I am not talking about the copy in t

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

2006-11-08 Thread Josh Marshall
Hi David, Sorry for the late reply. Can you CC any reply to me as well, as I just get the digests and read them every few days. On 08/11/2006, at 11:09 PM, David Cournapeau wrote: I didn't know that, thanks. Unfortunately, it is not really what I am trying to do: mlabwrap is just a python i

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

2006-11-08 Thread David Cournapeau
Matthew Brett wrote: > > I would be very happy to help with this. It would be great if we > could get a standard well-maintained library of some sort towards > scipy - we (http://neuroimaging.scipy.org/) have a great deal of > matlab integration to do. > I am a bit busy and late on my PhD sched

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

2006-11-08 Thread Andrew Straw
David Cournapeau wrote: > Andrew Straw wrote: > >> David Cournapeau wrote: >> >> >>> - To send data from the calling process to matlab, you first have to >>> create a mxArray, which is the basic matlab handler of a matlab array, >>> and populating it. Using mxArray is very ackward

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

2006-11-08 Thread David Cournapeau
Andrew Straw wrote: > David Cournapeau wrote: > >> - To send data from the calling process to matlab, you first have to >> create a mxArray, which is the basic matlab handler of a matlab array, >> and populating it. Using mxArray is very ackward : you cannot create >> mxArray from existin

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] 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

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

2006-11-06 Thread David Cournapeau
Andrew Straw wrote: > David Cournapeau wrote: > >> Andrew Straw wrote: >> >> >>> David Cournapeau wrote: >>> >>> >>> - To send data from the calling process to matlab, you first have to create a mxArray, which is the basic matlab handler of a matlab array,

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

2006-11-06 Thread Andrew Straw
David Cournapeau wrote: > Andrew Straw wrote: > >> David Cournapeau wrote: >> >> >>> - To send data from the calling process to matlab, you first have to >>> create a mxArray, which is the basic matlab handler of a matlab array, >>> and populating it. Using mxArray is very ackward

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

2006-11-06 Thread David Cournapeau
Andrew Straw wrote: > David Cournapeau wrote: > >> - To send data from the calling process to matlab, you first have to >> create a mxArray, which is the basic matlab handler of a matlab array, >> and populating it. Using mxArray is very ackward : you cannot create >> mxArray from existin

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

2006-11-06 Thread Andrew Straw
David Cournapeau wrote: > - To send data from the calling process to matlab, you first have to > create a mxArray, which is the basic matlab handler of a matlab array, > and populating it. Using mxArray is very ackward : you cannot create > mxArray from existing data, you have to copy data t