[Numpy-tickets] [NumPy] #955: [debian #505999] memory leak in exponentiation
NumPy
numpy-tickets@scipy....
Sun Feb 8 01:07:05 CST 2009
#955: [debian #505999] memory leak in exponentiation
-------------------------+--------------------------------------------------
Reporter: stefan | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.1.2
Component: numpy.core | Version: none
Severity: normal | Resolution:
Keywords: memory leak |
-------------------------+--------------------------------------------------
Comment (by sabik):
stefan, the point with the exception is that 0.0**int32(-3.5) should
behave the same way as 0.0**int64(-3.5); either they should both raise
exceptions, or they should both return inf.
With 0.1, that's the case: 0.1**int32(-3.5) == 0.1**int64(-3.5)
With 0.0, the behaviour is different: 0.0**int32(-3.5) raises an exception
while 0.0**int64(-3.5) returns inf.
(I'm not sure whether exception or inf is the correct answer, but it
should be the same for both.)
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/955#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