[Numpy-discussion] What should be the return type of average?

Charles R Harris charlesr.harris at gmail.com
Sat Mar 15 20:08:26 EDT 2008


Hi,

I want to fix up the average function. I note that the return dtype is not
specified, nor is the precision of the accumulator. Both of these can be
specified for the mean method and I wonder what should be the case for
average. Or should we just use double precision? That would seem appropriate
to me most of the time, but wouldn't match what happens with mean and would
lose precision in the case of extended precision doubles. There is also no
out keyword, do we want one?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080315/ccb9f78a/attachment.html>


More information about the NumPy-Discussion mailing list