Re: [Numpy-discussion] wrap Python/numpy to C/C++. mingw. elmer.

2008-01-11 Thread eric jones
Hey Mani, I've included Rick Ratzel on this since he is the author of elmer and may have more guidance. eric mani sabri wrote: > Hi > Sorry for irrelevant subject. > I found elmer when I was googling for something to wrap my python/numpy code > to C/C++ automatically because I want a dll for

Re: [Numpy-discussion] parallel numpy (by Brian Granger) - any info?

2008-01-07 Thread eric jones
's related to matrix multiplication and devision, either point or >> matrix (i.e. like A\B, A*B, dot(A,B)). >> > > Eric Jones has made an attempt. > >http://svn.scipy.org/svn/numpy/branches/multicore/ > > Unfortunately, the overhead of starting the

Re: [Numpy-discussion] Little module to get numpy examples

2007-03-21 Thread eric jones
Just looked at this... Now that is just cool. I'd say it should be part of Numpy. eric Bill Baxter wrote: > On 3/19/07, Bill Baxter <[EMAIL PROTECTED]> wrote: > >> I wrote a little python module to go fetch the Numpy examples from the >> scipy wiki page, parse them, and print out entries. >

[Numpy-discussion] pickling ufuncs?

2007-02-11 Thread eric jones
I recently noticed that we can't pickle ufuncs (like sin, ...). Is there any technical reason this doesn't work, or is it in the category of 'just needs to be done...' FYI, I noticed that it didn't work on the old Numeric either. thanks, eric Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug

Re: [Numpy-discussion] subclassing float64 (and friends)

2007-01-03 Thread eric jones
Thanks for the update. For now, I'll try doing what I need to by sub-classing float. But, I'm gonna miss __array_finalize__ :-). eric Travis Oliphant wrote: > eric jones wrote: > > >> Hey all, >> >> I am playing around with sub-classing the new-fangle

[Numpy-discussion] subclassing float64 (and friends)

2007-01-03 Thread eric jones
Hey all, I am playing around with sub-classing the new-fangled float64 objects and friends. I really like the new ndarray subclassing features (__array_finalize__, etc.), and was exploring whether or not the scalars worked the same way. I've stubbed my toe right out of the blocks though. I

Re: [Numpy-discussion] Histograms of extremely large data sets

2006-12-14 Thread eric jones
I just noticed a bug in this code. "PyArray_ITER_NEXT(iter);" should be moved out of the if statement. eric eric jones wrote: > > > Rick White wrote: >> Just so we don't get too smug about the speed, if I do this in IDL >> on the same machine it is 10 t

Re: [Numpy-discussion] Histograms of extremely large data sets

2006-12-14 Thread eric jones
Rick White wrote: Just so we don't get too smug about the speed, if I do this in IDL on the same machine it is 10 times faster (0.28 seconds instead of 4 seconds). I'm sure the IDL version uses the much faster approach of just sweeping through the array once, incrementing counts in the

Re: [Numpy-discussion] Histograms of extremely large data sets

2006-12-13 Thread eric jones
Looks to me like Rick's version is simpler and faster.It looks like it offers a speed-up of about 1.6 on my machine over the weave version. I believe this is because the sorting approach results in quite a few less compares than the algorithm I used. Very cool. I vote that his version go int

Re: [Numpy-discussion] Histograms of extremely large data sets

2006-12-13 Thread eric jones
r options I've tried. On my laptop it took 30 seconds > to generate a histogram from 500 million numbers, which is fine. > > Thanks and best regards, > > Cameron. > > > On 14/12/06, eric jones <[EMAIL PROTECTED]> wrote: > >> Hmmm. >> >> ?

Re: [Numpy-discussion] Histograms of extremely large data sets

2006-12-13 Thread eric jones
Hmmm. ? Not sure. ? Change that line to this instead which should work as well. code = array_converter.declaration_code(self, templatize, inline) Both work for me. eric Cameron Walsh wrote: > On 13/12/06, Cameron Walsh <[EMAIL PROTECTED]> wrote: > >> On 13

Re: [Numpy-discussion] Histograms of extremely large data sets

2006-12-12 Thread eric jones
Hey Cameron, I wrote a simple weave based histogram function that should work for your problem. It should work for any array input data type. The needed files (and a few tests and examples) are attached. Below is the output from the histogram_speed.py file attached. The test takes about 1