diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-11-14 18:08:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 18:08:30 -0600 |
commit | d1e0a43ff910e15034997b9b646b38014382fe6e (patch) | |
tree | 14970cfe5421541fdd3fe0f4e77a23101e39abb1 /numpy/lib/arraysetops.py | |
parent | 13a69b5e0fc409928dc81cdce405043e7c71cd0a (diff) | |
parent | a0833836e07aeabde98eb3cfa1a583b3dd4a9439 (diff) | |
download | numpy-d1e0a43ff910e15034997b9b646b38014382fe6e.tar.gz |
Merge pull request #12382 from shoyer/finish-set-module
ENH: set correct __module__ for objects in numpy's public API
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 850e20123..fd64ecbd6 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -479,6 +479,11 @@ def setxor1d(ar1, ar2, assume_unique=False): return aux[flag[1:] & flag[:-1]] +def _in1d_dispatcher(ar1, ar2, assume_unique=None, invert=None): + return (ar1, ar2) + + +@array_function_dispatch(_in1d_dispatcher) def in1d(ar1, ar2, assume_unique=False, invert=False): """ Test whether each element of a 1-D array is also present in a second array. |