[Numpy-discussion] complex arrays and ctypes

Albert Strasheim fullung at gmail.com
Sun May 27 11:55:01 EDT 2007


Hello

On Sun, 27 May 2007, Sven Schreiber wrote:

> Hi,
> I am wondering whether it's possible to pass (and get back) arrays of
> complex floats via ctypes.
> 
> To be concrete, I have managed to access lapack's dgges (Fortran)
> function using ctypes (thanks to a related example on this list), and
> now I would like to do the same with the complex version zgges.

An array just gets passed to the function as a pointer, so the answer is 
definately yes. Do you need some specific code?

Cheers,

Albert



More information about the NumPy-Discussion mailing list