title: Find the row indexes of several values in a numpy array
body: <p>I have an array X:</p>
  
  <pre><code>X = np.array([[4,  2],
                [9,  3],
                [8,  5],
                [3,  3],
                [5,  6]])
  </code></pre>
  
  <p>And I wish to find the index of the row of several values in this array:</p>
  
  <pre><code>searched_values = np.array([[4, 2],
                              [3, 3],
                              [5, 6]])
  </code></pre>
  
  <p>For this example I would like a result like:</p>
  
  <pre><code>[0,3,4]
  </code></pre>
  
  <p>I have a code doing this, but I think it is overly complicated:</p>
  
  <pre><code>X = np.array([[4,  2],
                [9,  3],
                [8,  5],
                [3,  3],
                [5,  6]])
  
  searched_values = np.array([[4, 2],
                              [3, 3],
                              [5, 6]])
  
  result = []
  
  for s in searched_values:
      idx = np.argwhere([np.all((X-s)==0, axis=1)])[0][1]
      result.append(idx)
  
  print(result)
  </code></pre>
  
  <p>I found <a href="https://stackoverflow.com/a/32191125/4876550">this answer</a> for a similar question but it works only for 1d arrays.</p>
  
  <p>Is there a way to do what I want in a simpler way?</p>