[SciPy-user] Wrapping C libraries for Numeric integration

Robert Cimrman cimrman3 at ntc.zcu.cz
Wed Feb 8 04:38:43 CST 2006

Prabhu Ramachandran wrote:
>>>>>>"Scott" == Scott Ransom <sransom at nrao.edu> writes:
>     Scott> I'm a bit hesitant to post this since the code is a bit old
>     Scott> and possibly a bit crusty, but I have several typemaps that
>     Scott> I've been using successfully for the past ~6yrs that allow
>     Scott> me to do some interfacing of 1-D and 2-D arrays between C
>     Scott> and Numeric.
>     Scott> What I have allows me to use a C function on an array
>     Scott> generated in Numeric, as well as turn an array that was
>     Scott> created in C (with malloc) into a usable Numeric array.
>     Scott> Some of the maps are pretty specific to my code, but if
>     Scott> there is enough interest (and if someone is willing to
>     Scott> check things out wrt the new numpy), I would be willing to
>     Scott> post the typemaps and maybe some usage examples.
> I think this would be useful in general and well worth putting up on
> the wiki.

I have just created Cookbook/SWIG_and_NumPy page and put my own meager 
attempt to address this topic there. All Numpy swiggers are encouraged 
to add their ideas :)


More information about the SciPy-user mailing list