[Numpy-discussion] fromfile() improvements (was: planning for numpy 1.3.0 release)

2008-09-09 Thread Christopher Barker
Stéfan van der Walt wrote: > 2008/9/9 Christopher Barker <[EMAIL PROTECTED]>: >> Anyone want to help with improvements to fromfile() for text files? > > This is low hanging fruit for anyone with some experience in C. We > can definitely get it done for 1.3. Chris, would you file a ticket > and

[Numpy-discussion] NumPy arrays that use memory allocated from other libraries or tools

2008-09-09 Thread Travis E. Oliphant
I wanted to point anybody interested to a blog post that describes a useful pattern for having a NumPy array that points to the memory created by a different memory manager than the standard one used by NumPy. The pattern shows how to create a NumPy array that points to previously allocated

[Numpy-discussion] norm_gen

2008-09-09 Thread SimonPalmer
Hi, can anyone point me in the direction of some example code to use the norm_gen function in scipy.stats? I know this is the wrong board but I seem to be at the wrong end of the moderation queue on the scipy board and have been for a couple of weeks, so my posts over there don't show up. I'm hop

Re: [Numpy-discussion] Still having issues

2008-09-09 Thread Robert Kern
On Tue, Sep 9, 2008 at 17:53, Blubaugh, David A. <[EMAIL PROTECTED]> wrote: > It appears that once I run the f2py.py script from the IDLE environment, That's your problem. It is a script to run from the command line, not a module for you to import. Please reply to messages with the reply button i

[Numpy-discussion] Still having issues

2008-09-09 Thread Blubaugh, David A.
Mark, I have taken the advice that you had given to me the other day. However, I am still having issues with actually executing the f2py.py script. > If numpy is installed, then f2py will be too. > On the windows environment, > there is a file called f2py.py that you can >>> > ca

Re: [Numpy-discussion] upcoming 1.2.0rc2 (1.2.0 final soon to follow)!

2008-09-09 Thread Jarrod Millman
I will be branching for 1.2.0rc2 shortly. Please don't commit anything to the branch without running it by the list: http://projects.scipy.org/scipy/numpy/browser/branches/1.2.x Once the binaries have been made, I will send out an announcement. Thanks, Jarrod On Mon, Sep 8, 2008 at 4:45 PM, Jar

Re: [Numpy-discussion] small bug in numpy.ma.minimum.outer

2008-09-09 Thread Charles Doutriaux
Thx Pierre Pierre GM wrote: > On Tuesday 09 September 2008 14:03:04 Charles Doutriaux wrote: > >> a=numpy.ones((2,2)) >> >> >>> numpy.minimum.outer(a,a) >> >>> numpy.ma.minimum.outer(a,a) >> > > Fixed in SVN r5800. > ___ > Numpy-discussion mai

Re: [Numpy-discussion] small bug in numpy.ma.minimum.outer

2008-09-09 Thread Pierre GM
On Tuesday 09 September 2008 14:03:04 Charles Doutriaux wrote: > a=numpy.ones((2,2)) > > >>> numpy.minimum.outer(a,a) > >>> numpy.ma.minimum.outer(a,a) Fixed in SVN r5800. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.sc

Re: [Numpy-discussion] compressed and sqrt in numpy.ma

2008-09-09 Thread Pierre GM
On Tuesday 09 September 2008 14:14:48 Charles Doutriaux wrote: > The following is causing our code to crash, shouldn't .data be just ones ? > > >>> a = numpy.ma.ones((2,2)) > >>> b = numpy.ma.sqrt(a) > >>> b.compressed().data Nope. When you use compressed(), you get a ndarray (or a subclass, de

[Numpy-discussion] compressed and sqrt in numpy.ma

2008-09-09 Thread Charles Doutriaux
The following is causing our code to crash, shouldn't .data be just ones ? >>> a = numpy.ma.ones((2,2)) >>> b = numpy.ma.sqrt(a) >>> b.compressed().data ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/l

[Numpy-discussion] small bug in numpy.ma.minimum.outer

2008-09-09 Thread Charles Doutriaux
a=numpy.ones((2,2)) >>> numpy.minimum.outer(a,a) array( 1., 1.], [ 1., 1.]], [[ 1., 1.], [ 1., 1.]]], [[[ 1., 1.], [ 1., 1.]], [[ 1., 1.], [ 1., 1.) >>> numpy.ma.minimum.outer(a,a) Traceback (most recent call last):

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-09 Thread Christopher Barker
Hanni Ali wrote: > > Interesting example thanks. I can't however seem to get anything > other than > > zero for the 100,000 to 1 sum. what is the "100,000 to 1 sum." this is my interpretation: a = np.linspace(10, 1, 10) >>> a array([ 1.e+05, 9.e+04, 9.9

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-09 Thread Warren Focke
On Tue, 9 Sep 2008, David Cournapeau wrote: > We don't use SSE and co in numpy, and I doubt the compilers (even > Intel one) are able to generate effective SSE for numpy ATM. Actually, > double and float are about the same speed for x86 (using the x87 FPU > and not the SSE units), because intern

Re: [Numpy-discussion] planning for numpy 1.3.0 release

2008-09-09 Thread David Cournapeau
On Tue, Sep 9, 2008 at 9:12 AM, Jarrod Millman <[EMAIL PROTECTED]> wrote: > Now that 1.2.0 is almost finalized, I wanted to ask everyone to start > thinking about what they plan to work on for the next minor release: > http://scipy.org/scipy/numpy/milestone/1.3.0 > > We have been gradually moving t

Re: [Numpy-discussion] planning for numpy 1.3.0 release

2008-09-09 Thread David Cournapeau
On Tue, Sep 9, 2008 at 7:45 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > > I also have a big rearrangement/cleanup of the inner loops in the > umathmodule that has been sitting around for half a year. I think it is > almost orthogonal to your work because it deals with a different part of the

[Numpy-discussion] [Fwd: Fwd: [ML-news] Call for Submissions: Workshop on Machine Learning Open Source Software (MLOSS), NIPS*08]

2008-09-09 Thread Emanuele Olivetti
Maybe of interest. E. Original Message -- Forwarded message -- From: mikiobraun <[EMAIL PROTECTED]> Date: 2008/9/8 Subject: [ML-news] Call for Submissions: Workshop on Machine Learning Open Source Software (MLOSS), NIPS*08 To: Machine Learning News <[EMAIL PROT

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-09 Thread Hanni Ali
I already was... 2008/9/9 Matthieu Brucher <[EMAIL PROTECTED]> > Use 1./n instead of 1/n. If n is an integer, 1/n equals 0. > > Matthieu > > 2008/9/9 Hanni Ali <[EMAIL PROTECTED]>: > > Hi Matthieu, > > > > Interesting example thanks. I can't however seem to get anything other > than > > zero for

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-09 Thread Matthieu Brucher
Use 1./n instead of 1/n. If n is an integer, 1/n equals 0. Matthieu 2008/9/9 Hanni Ali <[EMAIL PROTECTED]>: > Hi Matthieu, > > Interesting example thanks. I can't however seem to get anything other than > zero for the 100,000 to 1 sum. > > Cheers, > > Hanni > > 2008/9/9 Matthieu Brucher <[EMAIL P

Re: [Numpy-discussion] planning for numpy 1.3.0 release

2008-09-09 Thread Charles R Harris
On Mon, Sep 8, 2008 at 11:54 PM, David Cournapeau < [EMAIL PROTECTED]> wrote: > On Mon, 2008-09-08 at 17:12 -0700, Jarrod Millman wrote: > > Now that 1.2.0 is almost finalized, I wanted to ask everyone to start > > thinking about what they plan to work on for the next minor release: > > http://sci

Re: [Numpy-discussion] planning for numpy 1.3.0 release

2008-09-09 Thread Pauli Virtanen
Tue, 09 Sep 2008 09:49:32 +0200, Stéfan van der Walt wrote: > 2008/9/9 Christopher Barker <[EMAIL PROTECTED]>: >> Jarrod Millman wrote: >>> So if there is something that you would like to work on during this >>> release cycle, please bring it up now. >> >> Anyone want to help with improvements to

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-09 Thread Hanni Ali
> > > I think it is a fallacy to say you prefer accuracy over speed: the > fallacy is in thinking it is binary choice. You care about speed, > because otherwise, you would not use a computer at all, you would do > everything by hand [1]. Floating point is by itself an approximation: it > can not ev

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-09 Thread Hanni Ali
Hi Matthieu, Interesting example thanks. I can't however seem to get anything other than zero for the 100,000 to 1 sum. Cheers, Hanni 2008/9/9 Matthieu Brucher <[EMAIL PROTECTED]> > > I now have a distinct dislike of float values (it'll probably wear off > over > > time), how can the sum of 10

Re: [Numpy-discussion] planning for numpy 1.3.0 release

2008-09-09 Thread Stéfan van der Walt
2008/9/9 Christopher Barker <[EMAIL PROTECTED]>: > Jarrod Millman wrote: >> So if there is something that you would like to work on during this >> release cycle, please bring it up now. > > Anyone want to help with improvements to fromfile() for text files? This is low hanging fruit for anyone wi

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-09 Thread David Cournapeau
On Tue, 2008-09-09 at 07:53 +0100, Hanni Ali wrote: > Hi David, > > Forgot to answer last week, I was under a fair bit of pressure time > wise, but thanks for your input. I sorted it all in the end and just > in time, but the main issue here was the change from numarray to > numpy. Previously wher

Re: [Numpy-discussion] Floating Point Difference between numpy and numarray

2008-09-09 Thread Matthieu Brucher
> I now have a distinct dislike of float values (it'll probably wear off over > time), how can the sum of 100,000 numbers be anything other than the sum of > those numbers. I know the reasoning, as highlighted by the couple of other > e-mails we have had, but I feel the default should probably lean