Wiki

Page

Please note that with current versions of NumPy (SVN), the directory numpy/doc/swig contains a complete working example with simple SWIG typemaps, including also a proper setup.py file so you can install it with the standard Python mechanisms. This should help you get up and running quickly.

To get the feel how to write a truly minimalist interface, below is a relevant part of the simple SWIG interface file umfpack.i (this is for SWIG < version 1.3.29) used to wrap the UMFPACK sparse linear solver libraries. The full interface can be found in the directory scipy/Lib/sandbox/umfpack in the SciPy SVN repository. If you're using SWIG > version 1.3.29, refer to the umfpack.i file in SciPy SVN repository, which is slightly different.