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

numpy-svn at scipy.org numpy-svn at scipy.org
Mon May 19 15:52:25 EDT 2008


Author: stefan
Date: 2008-05-19 14:52:04 -0500 (Mon, 19 May 2008)
New Revision: 5193

Modified:
   trunk/numpy/core/fromnumeric.py
Log:
Remove duplicate `alltrue`.


Modified: trunk/numpy/core/fromnumeric.py
===================================================================
--- trunk/numpy/core/fromnumeric.py	2008-05-19 15:30:03 UTC (rev 5192)
+++ trunk/numpy/core/fromnumeric.py	2008-05-19 19:52:04 UTC (rev 5193)
@@ -1116,33 +1116,6 @@
     return any(axis, out)
 
 
-def alltrue (a, axis=None, out=None):
-    """Check if all of the elements of `a` are true.
-
-    Performs a logical_and over the given axis and returns the result
-
-    Parameters
-    ----------
-    a : array_like
-    axis : {None, integer}
-        Axis to perform the operation over.
-        If None, perform over flattened array.
-    out : {None, array}, optional
-        Array into which the product can be placed. Its type is preserved
-        and it must be of the right shape to hold the output.
-
-    See Also
-    --------
-    ndarray.all : equivalent method
-
-    """
-    try:
-        all = a.all
-    except AttributeError:
-        return _wrapit(a, 'all', axis, out)
-    return all(axis, out)
-
-
 def any(a,axis=None, out=None):
     """Check if any of the elements of `a` are true.
 




More information about the Numpy-svn mailing list