[Numpy-discussion] creating a Numeric array from a numpy array LEAKS memory
Jose Borreguero
borreguero@gmail....
Fri Oct 24 12:43:43 CDT 2008
Dear numpy users,
I need to pass a Numeric array to some oldie code from a numpy array. I
decided to go like this:
for i in range(BIGNUMER):
my_numpy_array=grabArray(i)
na=Numeric.array( my_numpy_array, Numeric.Float)
oldie_code(na)
The constructor line:
na=Numeric.array( my_numpy_array, Numeric.Float)
does leak memory.
Is there a way to pass the Numeric array to oldie_code without the leaks?
Regards,
--
Jose M. Borreguero
Postdoctoral Associate
Oak Ridge National Laboratory
P.O. Box 2008, M.S. 6164
Oak Ridge, TN 37831
phone: 865-241-3071 fax: 865-576-5491
Email: borreguerojm@ornl.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20081024/4c0aa604/attachment.html
More information about the Numpy-discussion
mailing list