From: Sasha <nd...@ma...> - 2006-10-10 21:14:00
|
On 10/10/06, Fernando Perez <fpe...@gm...> wrote: > ... > 1. Should the docstring be changed to simply say > > If axis is None, this equals: > a.sum(axis, dtype) * 1.0 / a.size > I would think so. In addition, at the expense of being slightly inaccurate, I would change that to simply a.sum(axis, dtype)/a.size . This will only be inaccurate if dtype is integer and true division is not enabled. If you want to be pedantic, a.sum(axis, dtype)/float(a.size) would still read better. |