diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-07-07 15:03:31 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-07-07 16:07:16 +0200 |
commit | 0e9e1076b0768236664259c8895d944c1d251b50 (patch) | |
tree | 58b1d5dfd1288fdc4363d2ee0c644735d94dc857 /numpy/lib/arraysetops.py | |
parent | 2c9981b61ca56b41a5e7b9fbe785b6b54727aea4 (diff) | |
download | numpy-0e9e1076b0768236664259c8895d944c1d251b50.tar.gz |
DOC: merge doc wiki edits. A number of small edits in linalg and lib.
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 |