[Numpy-svn] r3304 - in trunk/numpy: . lib

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Oct 10 18:18:09 CDT 2006


Author: stefan
Date: 2006-10-10 18:17:54 -0500 (Tue, 10 Oct 2006)
New Revision: 3304

Modified:
   trunk/numpy/add_newdocs.py
   trunk/numpy/lib/function_base.py
Log:
Fidget with average/mean docstrings.


Modified: trunk/numpy/add_newdocs.py
===================================================================
--- trunk/numpy/add_newdocs.py	2006-10-10 23:15:58 UTC (rev 3303)
+++ trunk/numpy/add_newdocs.py	2006-10-10 23:17:54 UTC (rev 3304)
@@ -828,7 +828,7 @@
       Average the array over the given axis.  If the axis is None,
       average over all dimensions of the array.  Equivalent to
 
-        a.sum(axis, dtype) * 1.0 / size(a, axis).
+        a.sum(axis, dtype) / size(a, axis).
 
       The optional dtype argument is the data type for intermediate
       calculations in the sum.;

Modified: trunk/numpy/lib/function_base.py
===================================================================
--- trunk/numpy/lib/function_base.py	2006-10-10 23:15:58 UTC (rev 3303)
+++ trunk/numpy/lib/function_base.py	2006-10-10 23:17:54 UTC (rev 3304)
@@ -234,7 +234,7 @@
     average over all dimensions of the array.  Equivalent to
     a.mean(axis) and to
 
-      a.sum(axis) * 1.0 / size(a, axis)
+      a.sum(axis) / size(a, axis)
 
     If weights are given, result is:
         sum(a * weights,axis) / sum(weights,axis),



More information about the Numpy-svn mailing list