Re: [Numpy-discussion] possibly ctypes related segfault

2007-08-28 Thread Stefan van der Walt
On Tue, Aug 28, 2007 at 02:03:52PM +0200, Martin Wiechert wrote: > Here's the test script. I'm using it via execfile from an interactive > session, > so I can inspect (and crash with readline) afterwards. > > Here's how I compiled: > gcc > solver.c -fPIC -ggdb -shared -llapack -lf77blas -lcblas

[Numpy-discussion] maskedarray : new developer zone wiki page

2007-08-28 Thread Pierre GM
On Saturday 25 August 2007 15:48:00 Eric Firing wrote: > I've made a couple of small "emergency" edits, but a separate page would > make things much more visible and less confusing. So here it is: http://projects.scipy.org/scipy/numpy/wiki/MaskedArrayAlternative Please note the section : Optimizi

Re: [Numpy-discussion] Maskedarray implementations

2007-08-28 Thread Pierre GM
On Monday 27 August 2007 14:09:33 Christopher Barker wrote: > This is the best bet, or we could call the new one ma, and the old one > ma_old. In any case, the old one needs to stick around until the new one > has been fully tested for compatibility (and otherwise). That shouldn't be a pb, the te

Re: [Numpy-discussion] possibly ctypes related segfault

2007-08-28 Thread Martin Wiechert
Wow, thanks a lot for putting so much efffort! Here's the test script. I'm using it via execfile from an interactive session, so I can inspect (and crash with readline) afterwards. Here's how I compiled: gcc solver.c -fPIC -ggdb -shared -llapack -lf77blas -lcblas -latlas -lgfortran -o librecti

Re: [Numpy-discussion] Issue with converting from numpy record to list/tuple

2007-08-28 Thread Sean Davis
On 8/28/07, Francesc Altet <[EMAIL PROTECTED]> wrote: > > A Monday 27 August 2007, Sean Davis escrigué: > > On 8/27/07, Sean Davis <[EMAIL PROTECTED]> wrote: > > > I have a numpy recarray that I want to load into a database using > > > insert statements. To do so, I need to convert each record to

Re: [Numpy-discussion] Issue with converting from numpy record to list/tuple

2007-08-28 Thread Francesc Altet
A Monday 27 August 2007, Sean Davis escrigué: > On 8/27/07, Sean Davis <[EMAIL PROTECTED]> wrote: > > I have a numpy recarray that I want to load into a database using > > insert statements. To do so, I need to convert each record to a > > tuple. Here is what I get (using psycopg2) > > > > In [1]

Re: [Numpy-discussion] possibly ctypes related segfault

2007-08-28 Thread Stefan van der Walt
Hi Martin On Mon, Aug 27, 2007 at 02:57:28PM +0200, Martin Wiechert wrote: > I'm suffering from a strange segfault and would appreciate your help. > > I'm calling a small C function using ctypes / numpy.ctypeslib. The function > works in the sense that it returns correct results. After calling t

Re: [Numpy-discussion] possibly ctypes related segfault

2007-08-28 Thread Martin Wiechert
Lino and Stefan, thanks for your suggestion. However, I doubt this is the problem because as far as I know numpy.intp is actually ssize_t. Thanks, Martin On Tuesday 28 August 2007 01:22, Stefan van der Walt wrote: > On Mon, Aug 27, 2007 at 08:21:43PM +0200, Lino Mastrodomenico wrote: > > Hi Ma

Re: [Numpy-discussion] numpy.random.multinomial() cannot handle zero's

2007-08-28 Thread Stefan van der Walt
On Mon, Aug 27, 2007 at 04:54:21PM -0700, Christopher Barker wrote: > Stefan van der Walt wrote: > > but using the Pyrex module, it yields true. You can find the code at > > > > http://mentat.za.net/html/refer/somesumbug.tar.bz2 > > That link appears to be broken. Sorry, http://mentat.za.net/re