title: Interpolate rows simultaneously in Python
body: <p>I am trying to vectorize my code and have reached a roadblock. I have :</p>
  <ul>
  <li>nxd array of x values <code>[[x1],[...],[xn]]</code> (where each row <code>[x1]</code> has many points <code>[x11, ..., x1d]</code></li>
  <li>nxd array of y values <code>[[y1],[y2],[y3]]</code> (where each row <code>[y1]</code> has many points <code>[y11, ..., y1d]</code></li>
  <li>nx1 array of x' values <code>[[x'1],[...],[x'n]]</code> that I would like to interpolate a y value for based on the corresponding row of x and y</li>
  </ul>
  <p>The only thing I can think to use is a list comprehension like <code>[np.interp(x'[i,:], x[i,:], y[i,:]) for i in range(n)]</code>. I'd like a faster vectorized option if one exists. Thanks for the help!</p>