KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I get the indices of intersection points between two numpy arrays? I can get intersecting values with intersect1d : import numpy as np a = np.array(xrange(11)) b = np.array([2, 7, 10]) inter = np.intersect1d(a, b) # inter == array([ 2, 7, 10]) But how can I get the indices into a of the values in inter ?
Tags (comma-separated)
Save Edits
Cancel