diff options
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r-- | numpy/core/defmatrix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py index c3f57efdf..d8a5a14dc 100644 --- a/numpy/core/defmatrix.py +++ b/numpy/core/defmatrix.py @@ -266,7 +266,7 @@ class matrix(N.ndarray): """ return N.ndarray.sum(self, axis, dtype, out)._align(axis) - def mean(self, axis=None, out=None): + def mean(self, axis=None, dtype=None, out=None): """Compute the mean along the specified axis. Returns the average of the array elements. The average is taken over @@ -304,7 +304,7 @@ class matrix(N.ndarray): The mean is the sum of the elements along the axis divided by the number of elements. """ - return N.ndarray.mean(self, axis, out)._align(axis) + return N.ndarray.mean(self, axis, dtype, out)._align(axis) def std(self, axis=None, dtype=None, out=None): """Compute the standard deviation along the specified axis. |