[Numpy-discussion] Build external C functions that take numpy arrays as parameters and return numpy arrays

Matthieu Brucher matthieu.brucher at gmail.com
Sun Jul 29 05:42:37 EDT 2007


The simplest way of doing this is with ctypes :


2007/7/24, computer_guy <zyzhu2000 at gmail.com>:
> Hi Everyone,
> I am going to write some external C functions that takes in numpy
> arrays as parameters and return numpy arrays. I have the following
> questions:
> 1. What should I do in my C code?
> 2. Can I use any C compiler to build my library that takes numpy
> arrays? I am using Windows XP and Visual Studio 2005.
> 3. How can I generate the python binding?
> Thanks,
> cg
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070729/f3d0085d/attachment.html>

More information about the NumPy-Discussion mailing list