wrapping C functions in python
Robert Kern
robert.kern at gmail.com
Thu Apr 10 17:38:29 EDT 2008
Paul Anton Letnes wrote:
> Brian and Diez:
>
> First of all, thanks for the advice.
>
> Brian:
>
> I have installed NumPy and SciPy, but I can't seem to find a wavelet
> transform there.
Well, you will definitely want to use numpy arrays instead of lists or the
standard library's arrays to communicate with your C code. ctypes with numpy is
probably more straightforward than using SWIG with any of the three.
http://www.scipy.org/Cookbook/Ctypes
You may also want to check out pywt:
http://pypi.python.org/pypi/PyWavelets/
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list