diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-08-29 09:37:47 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-08-29 09:37:47 +0000 |
commit | ce7a968a7b5cdb328ca1ea222211ad9cd8e506ad (patch) | |
tree | 69df6157b86e9d6157362b82473127e686c5837c /numpy/lib/arraysetops.py | |
parent | 936b14b2363d0b57aaa109b255d332d222704640 (diff) | |
download | numpy-ce7a968a7b5cdb328ca1ea222211ad9cd8e506ad.tar.gz |
Restore un-needed axis arguments
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index cc9067712..7bd666029 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -66,7 +66,7 @@ def unique1d( ar1, retindx = False ): if retindx: ar = numpy.array(ar1).ravel() perm = ar.argsort() - aux = ar.take(perm,0) + aux = ar.take(perm) flag = ediff1d( aux, 1 ) != 0 return perm.compress(flag), aux.compress(flag) else: @@ -113,8 +113,8 @@ def setmember1d( ar1, ar2 ): tt = concat( (zlike( ar1 ), zlike( ar2 ) + 1) ) perm = ar.argsort() - aux = ar.take(perm,0) - aux2 = tt.take(perm,0) + aux = ar.take(perm) + aux2 = tt.take(perm) flag = ediff1d( aux, 1 ) == 0 ii = numpy.where( flag * aux2 )[0] @@ -124,7 +124,7 @@ def setmember1d( ar1, ar2 ): indx = perm.argsort()[:len( ar1 )] - return flag.take( indx , 0) + return flag.take( indx ) ## # 03.11.2005, c |