Error with spline2dbuildbicubic of alglib
<p>I want to make a bicublic 2D spline Interpolation. For that I opted for using the library Alglib. I have two vectors xs and ys and a matrix magnitudes. According to the docs I wrote this (magnitude is a  double[N,27]):</p>

<pre><code>   for (int i = 0; i &lt; 27; i++)
 {
  ys[i] = i;
   }
  for (int i = 0; i &lt; N; i++)
 {
    xs[i] = i;
  }

   alglib.spline2dbuildbicubic(xs, ys,magnitudes,N, 27, out f);
</code></pre>

<p>I get the exception "alglib+alglibexception: Exception of type 'alglib+alglibexception' was thrown."</p>