[Numpy-discussion] Output dtype
Keith Goodman
kwgoodman@gmail....
Mon Dec 13 16:53:45 CST 2010
On Mon, Dec 13, 2010 at 12:20 PM, Bruce Southey <bsouthey@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