From: Mathieu M. <mat...@gm...> - 2009-01-06 10:04:40
|
On Mon, Dec 29, 2008 at 8:30 PM, Bryan Rockwood <bry...@ra...> wrote: > Greetings, > > I am new to SWIG and would appreciate an idea or two on how to handle > data that is to be passed to a C function. Specifically, I am trying to > get this function to work with Python and NUMPY objects. In this case, > two of the variables in the C function are of type 'float *[]' which is > an array of pointers to 1D arrays. What is the best way to handle that > in the interface file? Any pointers would be appreciated (pun > intended). Thank you in advance. Have you read: http://matt.eifelle.com/2008/11/04/exposing-an-array-interface-with-swig-for-a-cc-structure/ HTH -- Mathieu |