[Numpy-svn] r3508 - trunk/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Jan 9 02:00:34 CST 2007


Author: rkern
Date: 2007-01-09 02:00:26 -0600 (Tue, 09 Jan 2007)
New Revision: 3508

Modified:
   trunk/numpy/core/defmatrix.py
Log:
Use the out= parameter supplied by the user in defmatrix.sum()

Modified: trunk/numpy/core/defmatrix.py
===================================================================
--- trunk/numpy/core/defmatrix.py	2007-01-09 06:10:27 UTC (rev 3507)
+++ trunk/numpy/core/defmatrix.py	2007-01-09 08:00:26 UTC (rev 3508)
@@ -237,8 +237,7 @@
         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)



More information about the Numpy-svn mailing list