8000 API: make numpy.lib._arraysetops.intersect1d work on multiple arrays by skuschel · Pull Request #25688 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

API: make numpy.lib._arraysetops.intersect1d work on multiple arrays #25688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix doctests
  • Loading branch information
skuschel committed Feb 1, 2024
commit 06418f02700e3fe3d67892fcafb049c3007d394c
2 changes: 1 addition & 1 deletion numpy/lib/_arraysetops_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def intersect1d(*ars, assume_unique=False, return_indices=False):
To intersect more than two arrays, use:

>>> ars = ([1, 3, 4, 3], [3, 1, 2, 1], [6, 3, 4, 2])
>>> intersect1d(*ars, return_indices=True)
>>> np.intersect1d(*ars, return_indices=True)
(array([3]), array([1]), array([0]), array([1]))

To return the indices of the values common to the input arrays
Expand Down
0