Re: [Numpy-discussion] [EXTERNAL] Re: SWIG Numpy and C++ extensions

2012-08-01 Thread David Froger
On Tue, 31 Jul 2012 14:48:24 -0600, "Bill Spotz" wrote: > Use %inline %{ ... %} around your function. SWIG will add your function > directly to the wrapper file as well as add a wrapper function for calling it > from python. > > On Jul 31, 2012, at 2:04 PM, David Froger wrote: > > >> 2-that's

Re: [Numpy-discussion] [EXTERNAL] Re: SWIG Numpy and C++ extensions

2012-07-31 Thread Bill Spotz
Use %inline %{ ... %} around your function. SWIG will add your function directly to the wrapper file as well as add a wrapper function for calling it from python. On Jul 31, 2012, at 2:04 PM, David Froger wrote: >> 2-that's ok if your C++ deals with arrays but what if I actually want to >> re