diff options
author | Matthew Brett <matthew.brett@gmail.com> | 2008-02-13 02:44:43 +0000 |
---|---|---|
committer | Matthew Brett <matthew.brett@gmail.com> | 2008-02-13 02:44:43 +0000 |
commit | 90543a643b80acd8fcb3a1288a7defef6c541352 (patch) | |
tree | 3d8a105917b353d7ff189dae4881887a7cd56275 /numpy/core/defmatrix.py | |
parent | 2b608e1965ec4effbcf0e69fc1108339acf7f9c9 (diff) | |
download | numpy-90543a643b80acd8fcb3a1288a7defef6c541352.tar.gz |
Fix missing mean for median calculation, missing dtype from defmatrix mean signature
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. |