diff options
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 5 |
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]]) |