diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-05-19 19:52:04 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-05-19 19:52:04 +0000 |
commit | 689f1439c95b5f4fb2a147b9ff6df81fd45c8cfa (patch) | |
tree | 2f51057a54dd5bad0e0a6a9a719c679343c1f31b /numpy/core/fromnumeric.py | |
parent | 51adbb47d6e7a444743d89179c7ab4c22a738f4f (diff) | |
download | numpy-689f1439c95b5f4fb2a147b9ff6df81fd45c8cfa.tar.gz |
Remove duplicate `alltrue`.
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 9f433d17b..bf8971e93 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -1116,33 +1116,6 @@ def alltrue (a, axis=None, out=None): 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. |