summaryrefslogtreecommitdiff
path: root/numpy/core/defmatrix.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2007-01-09 08:00:26 +0000
committerRobert Kern <robert.kern@gmail.com>2007-01-09 08:00:26 +0000
commitcdb170ab36b668cd8668f71ea5f871396d95cb54 (patch)
tree6b0ec1a9a19059a5d176e154602cb93b0334684f /numpy/core/defmatrix.py
parent64aeb4dd4e4b22106db29329a3a81d2d7bc31b28 (diff)
downloadnumpy-cdb170ab36b668cd8668f71ea5f871396d95cb54.tar.gz
Use the out= parameter supplied by the user in defmatrix.sum()
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r--numpy/core/defmatrix.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py
index 58460265a..3c8635ca8 100644
--- a/numpy/core/defmatrix.py
+++ b/numpy/core/defmatrix.py
@@ -237,8 +237,7 @@ class matrix(N.ndarray):
over all dimensions. This preserves the orientation of the
result as a row or column.
"""
- # FIXME: should out=None be used here, or should it just be out?
- return N.ndarray.sum(self, axis, dtype, out=None)._align(axis)
+ return N.ndarray.sum(self, axis, dtype, out)._align(axis)
def mean(self, axis=None, out=None):
return N.ndarray.mean(self, axis, out)._align(axis)