title: passing 2d array from numpy to c++ via swig can't use float**
body: <p>I'm exploring wrapping c++ classes with SWIG and passing in data from numpy</p>
  
  <p>I can sucessfully pass in a 1d array using the following typemap</p>
  
  <pre><code>(float*, IN_ARRAY1, int DIM1)
  </code></pre>
  
  <p>The size of the array is not known at compile time so I can't use the type map</p>
  
  <pre><code>(float, IN_ARRAY2[DIM1][DIM2])
  </code></pre>
  
  <p>the numpy.i help suggests using</p>
  
  <pre><code>(float*, IN_ARRAY2, int DIM1, int DIM2)
  </code></pre>
  
  <p>however my c++ class expects - a pointer to a pointer of floats</p>
  
  <pre><code>void Initialise(float** buffer, long dim1, long dim2)
  </code></pre>
  
  <p>to use the float* IN_ARRAY2 type map do I need to interleave my two dimensions? urg I hope not, has anyone managed to do this successfuly, what do you do.</p>