[Numpy-discussion] Output dtype

Keith Goodman kwgoodman at gmail.com
Mon Dec 13 17:53:45 EST 2010

On Mon, Dec 13, 2010 at 12:20 PM, Bruce Southey <bsouthey at gmail.com> wrote:

> Unless something has changed since the docstring was written, this is
> probably an inherited 'bug' from np.mean() as the author expected that
> the docstring of mean was correct. For my 'old' 2.0 dev version:
>  >>> np.mean( np.array([[0,1,2,3,4,5]], dtype='float32'), axis=1).dtype
> dtype('float32')
>  >>> np.mean( np.array([[0,1,2,3,4,5]], dtype='float32')).dtype
> dtype('float64')

Are you saying the bug is in the doc string, the output, or both? I
think it is both; I expect the second result above to be float32.

More information about the NumPy-Discussion mailing list