<p>我尝试使用函数InterpolatedUnivariateSpline作为:</p>
<pre><code>from scipy.interpolate import InterpolatedUnivariateSpline
A = np.array([1,2,3,4,5])
B = np.array([11,34,56,78,19])
C = np.random.normal(0, 1, (500, 30))
model = InterpolatedUnivariateSpline(A, B, k = 1)
C2 = model(C) #fails with error object too deep for desired array
C2 = model(C[:,0]) #works but is not useful as I need inter-/extra-polation for entire C
</code></pre>
<p>那么,如何将函数应用于数组C的所有元素呢</p>
<p>编辑:scipy版本:0.13.2</p>