[NumPy-Tickets] [NumPy] #301: Make power and divide return floats from int inputs (like true_divide) (was: power with negative argument returns 0)
NumPy Trac
numpy-tickets@scipy....
Tue Mar 22 19:51:22 CDT 2011
#301: Make power and divide return floats from int inputs (like true_divide)
-------------------------+--------------------------------------------------
Reporter: stefan | Owner: somebody
Type: enhancement | Status: needs_decision
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version:
Keywords: |
-------------------------+--------------------------------------------------
Changes (by mwiebe):
* milestone: 1.5.1 => Unscheduled
Comment:
Maybe a way to deal with this would be to have overload resolution like:
int ** uint -> int
int ** (non-negative int scalar) -> int
int ** int -> float
int ** float -> float
But, that might be too subtle, and having just one behavior might be good.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/301#comment:7>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list