[Numpy-discussion] C extension in new numpy: help to port from numarray

Travis Oliphant oliphant.travis at ieee.org
Wed May 10 10:06:05 EDT 2006


Sebastian Haase wrote:
> One additional question:
> is  PyArray_FromDimsAndData creating a copy ?
> I have very large image data and cannot afford copies :-(

No,  it uses the data as the memory space for the array (but you have to 
either manage that memory area yourself or reset the OWNDATA flag to get 
NumPy to delete it for you on array deletion). 

-Travis





More information about the NumPy-Discussion mailing list