[SciPy-user] port C/C++ matlab mexing code to numpy

Gennan Chen gnchen at cortechs.net
Mon Apr 24 11:16:38 CDT 2006


Thanks!! Since we have more C code than C++, is there a example for  
using SWIG with numpy in the numpy or scipy's repository?
I need to access and return a numpy's 3d array for most of my  
calculation.

Gen


On Apr 24, 2006, at 9:09 AM, Tom Denniston wrote:

> Look at swig and boost python.  Boost is more pythonic.  Swig a little
> more automatic.  I would try both on small examples and determine what
> you prefer.  I personally like boost a little better.
>
> On 4/24/06, Gennan Chen <gnchen at cortechs.net> wrote:
>> Hi! All,
>>
>> We have a a lot of C/C++ code written for interacting with Matlab
>> (i.,e mexing code). I was wondering what's the best approach to port
>> them into python/numpy/scipy? How about using SWIG? Any
>> recommendation will be welcomed....
>>
>> Gen-Nan Chen, PhD
>> Chief Scientist
>> Research and Development Group
>> CorTechs Labs Inc (www.cortechs.net)
>> 1020 Prospect St., #304, La Jolla, CA, 92037
>> Tel: 1-858-459-9700 ext 16
>> Fax: 1-858-459-9705
>> Email: gnchen at cortechs.net
>>
>>
>> _______________________________________________
>> SciPy-user mailing list
>> SciPy-user at scipy.net
>> http://www.scipy.net/mailman/listinfo/scipy-user
>>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>



More information about the SciPy-user mailing list