[Numpy-tickets] [NumPy] #518: a.var(), a.std(), and a.mean() return incorrect type when no axis specified
NumPy
numpy-tickets@scipy....
Thu May 17 07:51:59 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 |
--------------------------------------+-------------------------------------
Comment (by charris):
But it isn't consistent in practice. If I start with an int16 array and
divide by its mean, I get a float64 result. If I divide the same array by
its means along the first axis, I get a float32 result. This example may
look artificial, but little inconsistencies like that can lead to
unexpected behaviour that is hard to track down.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/518#comment:5>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list