RectBivariateSpline 的第 m 个参数在 scipy 的旧 (0.9.0) 版本中有什么作用

What does the mth argument to RectBivariateSpline do in old (0.9.0) versions of scipy

我无法使用 scipy 版本 0.9.0

在那个版本 scipy.interpolate.RectBivariateSpline.__call__ 中有一个 keword 参数 mth。除了默认值 (mth='array'),我不知道它是如何使用的,特别是支持哪些其他选项(如果有的话)以及它们的作用?

我找到的文档适用于更新版本,其中不推荐使用 mth 参数(支持 grid 参数)。所以这对我不是很有用。

没有其他可用的选项:

函数的源代码如下:

def __call__(self, x, y, mth='array'):
    """ Evaluate spline at positions x,y."""
    x = np.asarray(x)
    y = np.asarray(y)
    # empty input yields empty output
    if (x.size == 0) and (y.size == 0):
        return array([])

    if mth=='array':
        tx,ty,c = self.tck[:3]
        kx,ky = self.degrees
        z,ier = dfitpack.bispev(tx,ty,c,kx,ky,x,y)
        assert ier==0,'Invalid input: ier='+`ier`
        return z
    raise NotImplementedError('unknown method mth=%s' % mth)