On Wed, Mar 31, 2010 at 15:05, Jeremy Lewi wrote:
> So my question is what is the best way to ensure I’m using the correct
> memory deallocator for the buffer? i.e the deallocator for what ever
> allocator numpy used to allocate the array?
PyArray_free() (note the capitalization). This is almost
Hello,
I'm passing a numpy array into a C-extension. I would like my C-extension to
take ownership of the data and handle deallocating the memory when it is no
longer needed. (The data is large so I want to avoid unnecessarily copying
the data).
So my question is what is the best way to en