On 21/03/2013 09:45, Valentin Haenel wrote:
if you are new to interfacing python/numpy with C/C++, you may want to check out:
Disclaimer: I am the author of this chapter, so this response is a bit of a shameless plug :D
I had a quick look at the chapter. It looks good! Thanks for sharing it.
However I have a small comment on the way you implement the Cython-Numpy solution. I would have written the loop over the array element in Cython itself rather than in a separately compiled C function. This would have the advantage of presenting more capabilities of Cython and would slightly decrease the complexity of the solution (one source file instead of two).