[Numpy-discussion] NumPy arrays that use memory allocated from other libraries or tools

Travis E. Oliphant oliphant@enthought....
Tue Sep 9 23:38:24 CDT 2008

I wanted to point anybody interested to a blog post that describes a 
useful pattern for having a NumPy array that points to the memory 
created by a different memory manager than the standard one used by 
NumPy.   The pattern  shows how to create a NumPy array that points to 
previously allocated memory and then shows how to construct an object 
that allows the correct deallocator to be called when the NumPy array is 

This may be useful if you are wrapping code that has it's own memory 
management scheme.   Comments and feedback is welcome. 

The post is


Best regards,

-Travis Oliphant

More information about the Numpy-discussion mailing list