Re: [Numpy-discussion] ANN: I wrote some Numpy + SWIG + MinGW simple examples
Hi Egor, Thanks for a very nice tutorial! Have you tried doing manipulations with 2D arrays?? or do you know how to tackle it? Regards, Soren On Fri, Nov 14, 2008 at 12:32 AM, Egor Zindy [EMAIL PROTECTED] wrote: Hello list! To get my head round the numpy.i interface for SWIG, I wrote some simple examples and documented them as much as possible. The result is here: http://code.google.com/p/ezwidgets/wiki/NumpySWIGMinGW I finally got round testing ARGOUTVIEW_ARRAY1 today, so it's time to ask for some feedback. Questions I still have: * Any way of doing array_out = function(array_in) without using ARGOUTVIEW_ARRAY1? * Any clean way of generating an exception on failed memory allocations? Hope this helps someone else... and thank you Bill Spotz for your original article and comments! Regards, Egor ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] ANN: I wrote some Numpy + SWIG + MinGW simple examples
Hi Soren, I noticed the same thing about my document, nothing about 2-D arrays yet! I will try and write some examples using the same document structure (argout, inplace and argoutview) and then condense the document (for instance, no need for a separate setup.py for each example). Regards, Egor Søren Nielsen wrote: Hi Egor, Thanks for a very nice tutorial! Have you tried doing manipulations with 2D arrays?? or do you know how to tackle it? Regards, Soren On Fri, Nov 14, 2008 at 12:32 AM, Egor Zindy [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello list! To get my head round the numpy.i interface for SWIG, I wrote some simple examples and documented them as much as possible. The result is here: http://code.google.com/p/ezwidgets/wiki/NumpySWIGMinGW I finally got round testing ARGOUTVIEW_ARRAY1 today, so it's time to ask for some feedback. Questions I still have: * Any way of doing array_out = function(array_in) without using ARGOUTVIEW_ARRAY1? * Any clean way of generating an exception on failed memory allocations? Hope this helps someone else... and thank you Bill Spotz for your original article and comments! Regards, Egor ___ Numpy-discussion mailing list Numpy-discussion@scipy.org mailto:Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] ANN: I wrote some Numpy + SWIG + MinGW simple examples
On Thu, Nov 13, 2008 at 6:32 PM, Egor Zindy [EMAIL PROTECTED] wrote: To get my head round the numpy.i interface for SWIG, I wrote some simple examples and documented them as much as possible. The result is here: Awesome. That will be very helpful to me, and I'm sure to others too. I know some don't seem to consider SWIG so useful these days, but I rely on it a lot, and it does its job pretty well. Apart from some of the details concerning windows paths and mingw, it looks like your information is equally useful for non-windows SWIG usage too. I'll put up some links to it in due course, FWIW. Thanks, Rob ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion