Re: [Numpy-discussion] Numpy+SWIG with arrays in input and output of a function

2010-04-16 Thread Antoine Delmotte
ive: > > %apply (double* IN_ARRAY1, int DIM1) {(double* vec , int m)}; > %apply (double* ARGOUT_ARRAY1, int DIM1) {(double* vec2, int n)}; > > -Bill > > On Apr 15, 2010, at 7:33 PM, Antoine Delmotte wrote: > > >> Dear Numpy and SWIG users, >> >> I a

[Numpy-discussion] Numpy+SWIG with arrays in input and output of a function

2010-04-15 Thread Antoine Delmotte
Dear Numpy and SWIG users, I am currently trying to use SWIG and Numpy to launch C++ codes from python. My C++ code takes an array as an input (as well as integers, but this will be my next problem...) and returns a different array (with different dimensions). I have managed to make ve