Re: [Numpy-discussion] Providing array interface from SWIG-wrapped C struct

2006-10-12 Thread vallis . 35530053
Wonderful, it works, thanks! Michele --- Discussion of Numerical Python wrote: > > Does anybody here have experience about offering the array interface > > from a SWIG-wrapped C struct? > > I have. > > > I have tried the following, borrowing code from numpy's arrayobject.c: > > > >

Re: [Numpy-discussion] Providing array interface from SWIG-wrapped C struct

2006-10-12 Thread Lisandro Dalcin
On 10/12/06, Michele Vallisneri <[EMAIL PROTECTED]> wrote: > Does anybody here have experience about offering the array interface > from a SWIG-wrapped C struct? I have. > I have tried the following, borrowing code from numpy's arrayobject.c: > > %extend real_vec_t { >PyObject *__array_struct