[Numpy-tickets] [NumPy] #570: Vectorize leaks
NumPy
numpy-tickets@scipy....
Fri Sep 21 16:05:33 CDT 2007
#570: Vectorize leaks
-----------------------------+----------------------------------------------
Reporter: albertstrasheim | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.4 Release
Component: numpy.core | Version: none
Severity: normal | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Changes (by stefan):
* cc: fonnesbeck@mac.com (added)
Comment:
Chris, I failed to reproduce the behaviour you describe. Would you (or
anyone else following) mind providing a code snippet that exposes the bug?
I started with:
{{{
import numpy as N
from math import exp
invlogit = lambda x: 1.0 / (1.0 + exp(-1.0 * x))
vi = N.vectorize(invlogit)
for i in xrange(100000):
x = vi(N.array([1,2,3]))
}}}
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/570#comment:2>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list