[Numpy-discussion] Octave-numpy bridge?

David Cournapeau david@ar.media.kyoto-u.ac...
Mon Oct 20 22:30:44 CDT 2008

Ravi wrote:
> Hi all,
>   Is anyone aware of a bridge between octave & numpy? As I port stuff from 
> Matlab to numpy, I noticed that most of my Matlab code has workarounds that 
> allow the code to be used from octave. My current methodology for porting is 
> to use octave to generate inputs/outputs for a function, then write the 
> results out in HDF5, read them into python+numpy, and compare the results. 
> This would be much faster, especially when dealing with mex files, if I could 
> use octave from my ipython shell, a la mlabwrap.
>   I searched the web but did not find anything on this topic that was recent.

Hi Ravi,

    I am not aware of such a bridge, but if octave has a C "engine" like
matlab, it should be relatively straightfoward to port it from matlab to
octave. I don't know how matlab and octave are compatible at the C API
level, but only a few functions are needed for the low-level wrapper,


More information about the Numpy-discussion mailing list