summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorFrederic Bastien <nouiz@nouiz.org>2016-11-03 13:37:16 -0400
committerFrederic Bastien <nouiz@nouiz.org>2016-11-03 13:37:16 -0400
commitf7378efe8884cf4d79cee1d880f1daf9420bd649 (patch)
tree5b8d22b677b3fc6b9c52cf9a7994ba4f57d01e51 /numpy/core/fromnumeric.py
parente1e76fefbd5a41ae14308a43245b4ecdf3099252 (diff)
downloadnumpy-f7378efe8884cf4d79cee1d880f1daf9420bd649.tar.gz
Keep the subclass and update the docstring per the comment.
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index a5c63ba84..613a24a13 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -2790,8 +2790,6 @@ def mean(a, axis=None, dtype=None, out=None, keepdims=np._NoValue):
Returns the average of the array elements. The average is taken over
the flattened array by default, otherwise over the specified axis.
`float64` intermediate and return values are used for integer inputs.
- `float32` intermediate are used for `float16` inputs for extra
- precision.
Parameters
----------
@@ -2849,6 +2847,9 @@ def mean(a, axis=None, dtype=None, out=None, keepdims=np._NoValue):
example below). Specifying a higher-precision accumulator using the
`dtype` keyword can alleviate this issue.
+ `float32` intermediate are used for `float16` inputs for extra
+ precision by default.
+
Examples
--------
>>> a = np.array([[1, 2], [3, 4]])