title: Indexing NumPy 2D array with another 2D array
body: <p>I have something like</p>
  
  <pre><code>m = array([[1, 2],
              [4, 5],
              [7, 8],
              [6, 2]])
  </code></pre>
  
  <p>and </p>
  
  <pre><code>select = array([0,1,0,0])
  </code></pre>
  
  <p>My target is</p>
  
  <pre><code>result = array([1, 5, 7, 6])
  </code></pre>
  
  <p>I tried <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ix_.html" rel="nofollow noreferrer">_ix</a> as I read at <a href="https://stackoverflow.com/questions/9515378/simplfy-row-and-column-extraction-numpy">Simplfy row AND column extraction, numpy</a>, but this did not result in what I wanted. </p>
  
  <p>p.s. Please change the title of this question if you can think of a more precise one.</p>