fastest way to use numpy.interp on a 2-D array
I have the following problem. I am trying to find the fastest way to use the interpolation method of numpy on a 2-D array of x-coordinates. import numpy as np xp = [0.0, 0.25, 0.5, 0.75, 1.0] np.random.seed(100) x = np.random.rand(10) fp = np.random.rand(10, 5) So basically, xp would be the x-coordinates of the data points, x would be an array containing the x-coordinates of the values I want to interpolate, and fp would be a 2-D array containing y-coordinates of the datapoints. xp [0.0, 0.25, 0.5, 0.75, 1.0] x array([ 0.54340494, 0.27836939, 0.42451759, 0.84477613, 0.00471886, 0.12156912, 0