【发布时间】:2020-03-19 07:37:33
【问题描述】:
我是 MKL 的新手,我有这个 Python 代码,我想将它转换为使用 MKL 函数“dfdInterpolate1D”(https://software.intel.com/en-us/mkl-developer-reference-c-df-interpolate1d-df-interpolateex1d) 的 C++ 代码。我发现的唯一示例是 https://software.intel.com/en-us/mkl-developer-reference-c-data-fitting-usage-examples,但它是基于三次样条的插值,并且 API 非常令人生畏。我已经编写了一个模仿 numpy.interp 的简单函数,但我需要一些优化。
stokes = np.arange(0,len(raw1660))
antistokes = stokes*(1+walkOff/1000)
raw1450 = np.interp(stokes,antistokes,raw1450)
【问题讨论】:
-
numpy.interp不使用 MKL 功能 - 它映射到函数arr_interp(github.com/numpy/numpy/blob/…)
标签: intel-mkl