[Numpy-discussion] Best way to insert C code in numpy code
Mon Sep 21 13:55:00 CDT 2009
David Cournapeau wrote:
> Xavier Gnata wrote:
>> I have a large 2D numpy array as input and a 1D array as output.
>> In between, I would like to use C code.
>> C is requirement because it has to be fast and because the algorithm
>> cannot be written in a numpy oriented way :( (no way...really).
>> Which tool should I use to achieve that? waeve.inline? pyrex? What is
>> the baseline?
> That's only a data point, but I almost always use cython in those cases,
> unless I need 'very advanced' features of the C API in which case I just
> do it manually.
Should I read that to learn you cython and numpy interact?
Or is there another best documentation (with examples...)?
More information about the NumPy-Discussion