Re: [Numpy-discussion] combinations anomaly

2007-09-22 Thread Charles R Harris
On 9/22/07, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > > On 9/22/07, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > > > Charles harris posted a generator function for generating > > combinations (based on Knuth's fascicle). I get the > > expected results by iterating over the resulting generat

Re: [Numpy-discussion] combinations anomaly

2007-09-22 Thread Alan G Isaac
On Sat, 22 Sep 2007, Charles R Harris apparently wrote: > an array view is returned, and the data is updated in the > loop ... I think your range fix is the way to go. Got it. Thanks! Alan ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] combinations anomaly

2007-09-22 Thread Charles R Harris
On 9/22/07, Alan G Isaac <[EMAIL PROTECTED]> wrote: > > Charles harris posted a generator function for generating > combinations (based on Knuth's fascicle). I get the > expected results by iterating over the resulting generator, > but not if I let ``list`` do that for me. What is more, > changin

[Numpy-discussion] combinations anomaly

2007-09-22 Thread Alan G Isaac
Charles harris posted a generator function for generating combinations (based on Knuth's fascicle). I get the expected results by iterating over the resulting generator, but not if I let ``list`` do that for me. What is more, changing ``arange`` to ``range`` in the code eliminates this anomaly

Re: [Numpy-discussion] Extracting all the possible combinations of a grid

2007-09-22 Thread Gael Varoquaux
On Sat, Sep 22, 2007 at 09:58:33AM -0600, Charles R Harris wrote: >Umm... that doesn't look quite right. Shouldn't it be something like Puzzling. My implementation works, as far as I could test it, which I did as much as I could. Maybe the two are equivalent. >Algorithm L can be chunked p

Re: [Numpy-discussion] Extracting all the possible combinations of a grid

2007-09-22 Thread Charles R Harris
On 9/22/07, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > > On Sat, Sep 22, 2007 at 10:35:16AM +0200, Gael Varoquaux wrote: > > I would go for the "generate_fourplets" solution if I had a way to > > calculate the binomial coefficient without overflows. > > Sorry, premature optimisation is the root of

Re: [Numpy-discussion] Bitting the bullet: using scons to build extensions inside distutils ?

2007-09-22 Thread David Cournapeau
On 9/17/07, Matthew Brett <[EMAIL PROTECTED]> wrote: > Hi, > > >Starting thinking over the whole distutils thing, I was thinking > > what people would think about using scons inside distutils to build > > extension. > > In general this seems like an excellent idea. If we can contribute > what

Re: [Numpy-discussion] Extracting all the possible combinations of a grid

2007-09-22 Thread Gael Varoquaux
On Sat, Sep 22, 2007 at 10:35:16AM +0200, Gael Varoquaux wrote: > I would go for the "generate_fourplets" solution if I had a way to > calculate the binomial coefficient without overflows. Sorry, premature optimisation is the root of all evil, but turning ones brain on early is good. """

Re: [Numpy-discussion] Extracting all the possible combinations of a grid

2007-09-22 Thread Gael Varoquaux
On Fri, Sep 21, 2007 at 06:40:52PM -0600, Charles R Harris wrote: >def triplet(n) : >out = [] >for i in xrange(2,n) : >for j in xrange(1,i) : >for k in xrange(0,j) : >out.append((i,j,k)) >return out I need quadruplets, num

[Numpy-discussion] New scipy 0.6.0 uploads

2007-09-22 Thread Jarrod Millman
There is a new scipy-0.6.0.tar.gz on the sourceforge page, which contains the missing scipy/linalg/src/fblaswrap_veclib_c.c. There is also now a scipy-0.6.0-py2.4-win32.egg and scipy-0.6.0-py2.5-win32.egg. Enjoy, -- Jarrod Millman Computational Infrastructure for Research Labs 10 Giannini Hall,

Re: [Numpy-discussion] Compilation failure on python2.4 win32

2007-09-22 Thread Pearu Peterson
On Fri, September 21, 2007 10:23 pm, Jörgen Stenarson wrote: > Travis E. Oliphant skrev: >> Jörgen Stenarson wrote: >>> Hi, >>> >>> I cannot compile numpy (rev 2042) for python2.4 on win32, it works on >>> python2.5. It looks like the call to function get_build_architecture in >>> distutils.misc_ut