[Numpy-discussion] memmory management question
pierre.haessig at crans.org
Mon Oct 28 08:37:19 EDT 2013
Along the line of what David said, I just looked at the flags :
a = np.arange(10)
OWNDATA : True
a = a[:3]
OWNDATA : False
Indeed, after a=a[:3], a is not the same Python object but still points
to the data of the first object.
What I didn't find (by quick googling) is how to access the original
array. Is it possible to access it (with Python code) ?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 900 bytes
Desc: OpenPGP digital signature
More information about the NumPy-Discussion