[Numpy-discussion] __array_interface__ / __array_struct__

Thomas Heller theller at ctypes.org
Tue Jan 22 15:57:34 EST 2008


I am experimenting with implementing __array_interface__ and/or __array_struct__
properties for ctypes instances, and have problems to create numpy arrays
from them that share the memory.  Probably I'm doing something wrong;
what is the correct function in numpy to create these shared objects?

I am using numpy.core.multiarray.array(ctypes-object), is that correct?

Thanks,
Thomas




More information about the NumPy-Discussion mailing list