summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorRobert Cimrman <cimrman3@ntc.zcu.cz>2006-10-12 11:19:01 +0000
committerRobert Cimrman <cimrman3@ntc.zcu.cz>2006-10-12 11:19:01 +0000
commit53bf14a0dbde7f708fb6a83fefd95138b54a678b (patch)
tree332776813b51b4346c5e5302d6cc939c93ddeb3d /numpy/lib/arraysetops.py
parentb5fc73534d943c77a9cd8254e97ea8d7aeb1be09 (diff)
downloadnumpy-53bf14a0dbde7f708fb6a83fefd95138b54a678b.tar.gz
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r--numpy/lib/arraysetops.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index e4ed1a276..1673ecf93 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -11,17 +11,17 @@ Contains:
union1d,
setdiff1d
-All functions work best with integer numerical arrays on input. For floating
-point arrays, innacurate results may appear due to usual round-off and
-floating point comparison issues.
+All functions work best with integer numerical arrays on input
+(e.g. indices). For floating point arrays, innacurate results may appear due to
+usual round-off and floating point comparison issues.
Except unique1d, union1d and intersect1d_nu, all functions expect inputs with
unique elements. Speed could be gained in some operations by an implementaion
of sort(), that can provide directly the permutation vectors, avoiding thus
calls to argsort().
-Run test_unique1d_speed() to compare numpy.unique1d() with numpy.unique() - it
-should be the same.
+Run test_unique1d_speed() to compare performance of numpy.unique1d() and
+numpy.unique() - it should be the same.
To do: Optionally return indices analogously to unique1d for all functions.
@@ -33,7 +33,6 @@ last revision: 12.10.2006
__all__ = ['ediff1d', 'unique1d', 'intersect1d', 'intersect1d_nu', 'setxor1d',
'setmember1d', 'union1d', 'setdiff1d']
-
import time
import numpy as nm
@@ -202,7 +201,6 @@ def test_unique1d_speed( plot_results = False ):
assert nm.alltrue( b == c )
-
print nItems
print dt1s
print dt2s