[Numpy-discussion] Getting a numpy array from a ctype pointer

Paulo J. S. Silva pjssilva@ime.usp...
Thu Sep 4 14:45:31 CDT 2008


I am writing some code interfacing C and Python using ctypes. In a
callback function (in Python) I get in a parameter x which is c_double
pointer and a parameter n which is c_int representing the length of the

How can I transform this information into a numpy array?


More information about the Numpy-discussion mailing list