Re: [Numpy-discussion] swig numpy2carray converters

2007-11-20 Thread David.Goldsmith
Chris, just to be clear, this is addressed to the OP, correct? DG Christopher Barker wrote: > I'm a bit confused too. > > What would be great is a simple trimmed down example -- a > small-as-you-can-make-it class with a method that shows what you need, > perhaps with a little C++ sample that us

Re: [Numpy-discussion] swig numpy2carray converters

2007-11-20 Thread David.Goldsmith
Bill Spotz wrote: >> Again, see above for my use case. >> But the fortran ordering should not be that hard (only setting the >> flags >> and strides right, as in FARRAY2_OUT in numpy2carray.i) - but of >> course >> someone has to do it ... ;) >> > > Yes, it shouldn't be too hard. And I li

Re: [Numpy-discussion] swig numpy2carray converters

2007-11-20 Thread David.Goldsmith
Georg Holzmann wrote: >>> (I also included an example for an interface to >>> fortran style arrays). >>> >> That, it doesn't have. >> It has ;) ... look in numpy2carray.i, FARRAY2_OUT (line 175). >> But yes, sorry, I did no example in example.cpp ... >> I'm pretty sure Chris meant that