[Numpy-discussion] help with typemapping a C function to use numpy arrays

Matthieu Brucher matthieu.brucher at gmail.com
Wed Jan 7 02:58:56 EST 2009


2009/1/6 Rich E <reakinator at gmail.com>:
> This helped immensely.  I feel like I am getting close to being able
> to accomplish what I would like with SWIG: producing a python module
> that can be very 'python-like', while co-existing with the c library
> that is very 'c-like'.
>
> There is one question still remaining though, is it possible to make
> the wrapped function have the same name still?  Using either
> my_spectrumMag or spectrumMag means I have to create a number of
> inconsistencies between the python module and the c library.  It is
> ideal to ignore (%ignore?) the c sms_spectrumMag and instead use the
> wrapped one, with the same name.  But my attempts at doing this so far
> have not compiled because of name conflictions.

Ok course you can. The function is renamed only if you say so. Perhaps
can you provide a small example of what doesn't work at the moment ?

> Thanks for the help, I think you are doing great things with this
> numpy interface/typemaps system.

Matthieu
-- 
Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher



More information about the NumPy-Discussion mailing list