[Numpy-discussion] Owndata flag
Fabrice Silva
silva at lma.cnrs-mrs.fr
Thu Dec 15 11:17:44 EST 2011
How can one arbitrarily assumes that an ndarray owns its data ?
More explicitly, I have some temporary home-made C structure that holds
a pointer to an array. I prepare (using Cython) an numpy.ndarray using
the PyArray_NewFromDescr function. I can delete my temporary C structure
without freeing the memory holding array, but I wish the numpy.ndarray
becomes the owner of the data.
How can do I do such thing ?
--
Fabrice Silva
More information about the NumPy-Discussion
mailing list