[Numpy-tickets] [NumPy] #518: a.var(), a.std(), and a.mean() return incorrect type when no axis specified
NumPy
numpy-tickets@scipy....
Wed May 16 01:18:50 CDT 2007
#518: a.var(), a.std(), and a.mean() return incorrect type when no axis specified
--------------------------------------+-------------------------------------
Reporter: charris | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone: 1.0.3 Release
Component: numpy.core | Version: none
Severity: normal | Resolution: wontfix
Keywords: return type var std mean |
--------------------------------------+-------------------------------------
Changes (by oliphant):
* status: new => closed
* resolution: => wontfix
Comment:
This behavior results from the implementation. The accumulation takes
place over float32 as requested. However, the resulting float32 scalar is
then divided by a Python double which produces the float64 result.
Changing it would introduce too much "special-case" checking for my
tastes. I'm not clear on the problems caused by the current behavior.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/518#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