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

Matthieu Brucher matthieu.brucher@gmail....
Sun Jul 29 04:42:37 CDT 2007


Hi,

The simplest way of doing this is with ctypes :
http://scipy.org/Cookbook/Ctypes

Matthieu

2007/7/24, computer_guy <zyzhu2000@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@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070729/f3d0085d/attachment.html 


More information about the Numpy-discussion mailing list