diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-07-07 16:07:39 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-07-07 16:38:37 +0200 |
commit | 436a28f4ea4d596c59e85745eac7446f7e18903f (patch) | |
tree | 2b4ad5911d86b5721705f5c03da427498d868849 /numpy/lib/arraysetops.py | |
parent | 3b9a0fea12ae89fe6ce745d9af0beb3df17260b8 (diff) | |
parent | ffca0587e99f3b3ecce80fa8cfd28bdf17abbf31 (diff) | |
download | numpy-436a28f4ea4d596c59e85745eac7446f7e18903f.tar.gz |
Merge branch 'merge-wiki-edits' into master.
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 91dd96f9c..20a0e7151 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -44,7 +44,7 @@ def ediff1d(ary, to_end=None, to_begin=None): Returns ------- - ed : ndarray + ediff1d : ndarray The differences. Loosely, this is ``ary.flat[1:] - ary.flat[:-1]``. See Also @@ -212,7 +212,7 @@ def intersect1d(ar1, ar2, assume_unique=False): Returns ------- - out : ndarray + intersect1d : ndarray Sorted 1D array of common and unique elements. See Also @@ -251,7 +251,7 @@ def setxor1d(ar1, ar2, assume_unique=False): Returns ------- - xor : ndarray + setxor1d : ndarray Sorted 1D array of unique values that are in only one of the input arrays. @@ -287,7 +287,7 @@ def in1d(ar1, ar2, assume_unique=False): Parameters ---------- - ar1 : array_like, shape (M,) + ar1 : (M,) array_like Input array. ar2 : array_like The values against which to test each value of `ar1`. @@ -297,8 +297,8 @@ def in1d(ar1, ar2, assume_unique=False): Returns ------- - mask : ndarray of bools, shape(M,) - The values `ar1[mask]` are in `ar2`. + in1d : (M,) ndarray, bool + The values `ar1[in1d]` are in `ar2`. See Also -------- @@ -365,7 +365,7 @@ def union1d(ar1, ar2): Returns ------- - union : ndarray + union1d : ndarray Unique, sorted union of the input arrays. See Also @@ -399,7 +399,7 @@ def setdiff1d(ar1, ar2, assume_unique=False): Returns ------- - difference : ndarray + setdiff1d : ndarray Sorted 1D array of values in `ar1` that are not in `ar2`. See Also |