[SciPy-User] C-API - Dealing with pointers to cfloat type
Sat Jan 30 20:04:17 CST 2010
I'm attempting to integrate an algorithm in a numpy extension written in C.
The extension compiles, but testing shows the data is not being transferred
On the Python side:
thing=array([1.0+1j, 1.0+1j, 1.0+1j], dtype=cfloat)
On the C side:
I always get 0.000 printed...
Modifying the code to pass an array of floats from python and mydat of type
float seems to work as expected. The problem seems to be dealing with
complex data types.
My build environment is win7(64), vs2008, python26(win32)+numpy1.4.0 .
I'd appreciate any advice I can get on this.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User