pyyeti.ytools.numba_interp¶
- pyyeti.ytools.numba_interp(x: ndarray, xp: ndarray, fp: ndarray) ndarray[source]¶
Apply np.interp to each row of 2d array.
Uses Numba to parallelize interpolation across rows of fp.
- Parameters:
x (1d ndarray) – The x-coordinates at which to evaluate the interpolated values.
xp (1d ndarray) – The x-coordinates of the data points. 1-dimensional.
fp (2d ndarray) – The y-coordinates of the data points, with shape [Any # rows, xp.shape[0]]
- Returns:
2d ndarray – The interpolated values, with shape [fp.shape[0], x.shape[0]]