diff options
author | B R S Recht <brsr@users.noreply.github.com> | 2017-05-04 20:03:09 -0400 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-05-05 01:03:09 +0100 |
commit | 69b0c42bca27dd5d5522de306bcd7db7deccbfad (patch) | |
tree | b857fc11775a3633bf959a158f5d6be3e7ef7971 /numpy/lib/info.py | |
parent | 1d592c12ca7f9c7f471aa8d20b538c5cb4f2cdce (diff) | |
download | numpy-69b0c42bca27dd5d5522de306bcd7db7deccbfad.tar.gz |
ENH: Add isin, genereralizing in1d to ND arrays (#8423)
This fixes gh-8331
Also update the docs for arraysetops to remove the outdated "1D" from the
description, which was already incorrect for np.unique.
Diffstat (limited to 'numpy/lib/info.py')
-rw-r--r-- | numpy/lib/info.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/lib/info.py b/numpy/lib/info.py index 141df2ace..e00406407 100644 --- a/numpy/lib/info.py +++ b/numpy/lib/info.py @@ -136,13 +136,15 @@ Threading Tricks ParallelExec Execute commands in parallel thread. ================ =================== -1D Array Set Operations +Array Set Operations ----------------------- -Set operations for 1D numeric arrays based on sort() function. +Set operations for numeric arrays based on sort() function. ================ =================== -ediff1d Array difference (auxiliary function). unique Unique elements of an array. +isin Test whether each element of an ND array is present + anywhere within a second array. +ediff1d Array difference (auxiliary function). intersect1d Intersection of 1D arrays with unique elements. setxor1d Set exclusive-or of 1D arrays with unique elements. in1d Test whether elements in a 1D array are also present in |