I have a C function that returns a float* and I have used CFFI to interface with it in Python.
How can I create a numpy array using the memory pointed to by the float* returned from the C function?
I have a C function that returns a float* and I have used CFFI to interface with it in Python.
How can I create a numpy array using the memory pointed to by the float* returned from the C function?
Can you use carray?
Perfect. Thanks nelson2005. Can’t believe I didn’t see this in the documentation.