From 90543a643b80acd8fcb3a1288a7defef6c541352 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Wed, 13 Feb 2008 02:44:43 +0000 Subject: Fix missing mean for median calculation, missing dtype from defmatrix mean signature --- numpy/core/defmatrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/defmatrix.py') 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. -- cgit v1.2.1