我正在尝试检查在以下 Python 代码中调用的函数 LinearNDInterpolator
from scipy.interpolate.interpnd import LinearNDInterpolator
我来到了SciPy GitHub branch scipy/scipy/interpolate但找不到 'interpnd' 更不用说 LinearNDInterpolator
。函数scipy/scipy/interpolate/ndgriddata.py使用函数 LinearNDInterpolator
。我怀疑这是因为 interpnd
不是 Python 脚本,而是 Python 环绕的 C++ 甚至 Fortran 之类的东西。是这样吗?
最佳答案
看起来是在Cython里面写的.
Source code link
关于python - 在 SciPy 中搜索函数 `LinearNDInterpolator` 的源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53991203/