diff options
author | Robert Kern <robert.kern@gmail.com> | 2007-01-09 08:00:26 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2007-01-09 08:00:26 +0000 |
commit | cdb170ab36b668cd8668f71ea5f871396d95cb54 (patch) | |
tree | 6b0ec1a9a19059a5d176e154602cb93b0334684f /numpy/core/defmatrix.py | |
parent | 64aeb4dd4e4b22106db29329a3a81d2d7bc31b28 (diff) | |
download | numpy-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.py | 3 |
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) |