[Numpy-discussion] freeing memory
oliphant at ee.byu.edu
Thu Aug 18 11:35:03 CDT 2005
Daniel Sheltraw wrote:
> Hello All
> Is their a reliable way to free memory allocated for an array in Numeric?
> My application uses a lot of memory and I need to free some as it goes
Assuming this is all in Python, you just need to delete all names bound
to the array.
>>> del arr
This will remove the memory for arr assuming there are no other arrays
referencing arr's memory (i.e. from indexing expresssions arr[3,:] and
or name binds).
More information about the Numpy-discussion