[Numpy-discussion] Dealloat Numy arrays in C
Jeremy Lewi
jlewi at intellisis.com
Wed Mar 31 17:05:32 EDT 2010
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 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?
Thanks
Jeremy
Jeremy Lewi
Engineering Scientist
The Intellisis Corporation
jlewi at intellisis.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100331/1ae22faf/attachment.html>
More information about the NumPy-Discussion
mailing list