Re: [Numpy-discussion] skip samples in random number generator

2014-10-03 Thread Robert Kern
On Thu, Oct 2, 2014 at 11:56 PM, Sturla Molden sturla.mol...@gmail.com wrote: Robert Kern robert.k...@gmail.com wrote: Yes, but that would require rewriting much of numpy.random to allow replacing the core generator. This would work out-of-box because it's just manipulating the state of the

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Eelco Hoogendoorn
slightly OT; but fwiw, its all ill-thought out nonsense from the start anyway. ALL numbers satisfy the predicate 0*x=0. what the IEEE calls 'not a number' would be more accurately called 'not a specific number', or 'a number'. whats a logical negation among computer scientists? On Fri, Oct 3,

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Robert Kern
On Fri, Oct 3, 2014 at 4:29 AM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 3:20 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Oct 2, 2014 at 7:06 PM, Benjamin Root ben.r...@ou.edu wrote: Out[1] has an integer divided by an integer, and you can't represent

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Stephan Hoyer
On Thu, Oct 2, 2014 at 11:29 PM, Nathaniel Smith n...@pobox.com wrote: The seterr warning system makes a lot of sense for IEEE754 floats, which are specifically designed so that 0/0 has a unique well-defined answer. For ints though this seems really broken to me. 0 / 0 = 0 is just the wrong

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Charles R Harris
On Fri, Oct 3, 2014 at 1:33 AM, Stephan Hoyer sho...@gmail.com wrote: On Thu, Oct 2, 2014 at 11:29 PM, Nathaniel Smith n...@pobox.com wrote: The seterr warning system makes a lot of sense for IEEE754 floats, which are specifically designed so that 0/0 has a unique well-defined answer. For

Re: [Numpy-discussion] Round away from zero (towards +/- infinity)

2014-10-03 Thread T J
It does, but it is not portable. That's why I was hoping NumPy might think about supporting more rounding algorithms. On Thu, Oct 2, 2014 at 10:00 PM, John Zwinck jzwi...@gmail.com wrote: On 3 Oct 2014 07:09, T J tjhn...@gmail.com wrote: Any bites on this? On Wed, Sep 24, 2014 at 12:23

Re: [Numpy-discussion] f2py and debug mode

2014-10-03 Thread Pearu Peterson
Hi, When you run f2py without -c option, the wrapper source files are generated without compiling them. With these source files and fortranobject.c, you can build the extension module with your specific compiler options using the compiler framework of your choice. I am not familiar with Visual

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Georg Brandl
On 10/03/2014 06:13 AM, Charles R Harris wrote: Plus the g*dawful warning default to only warn once. That has always bothered me, it just seems useless. If you use a custom warning, there's no reason why you couldn't set a filter that shows it every time by default. Georg

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Nathaniel Smith
On Fri, Oct 3, 2014 at 5:13 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Oct 2, 2014 at 10:12 PM, Charles R Harris charlesr.har...@gmail.com wrote: Plus the g*dawful warning default to only warn once. That has always bothered me, it just seems useless. I believe the idea is

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Charles R Harris
On Fri, Oct 3, 2014 at 3:00 PM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 5:13 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Oct 2, 2014 at 10:12 PM, Charles R Harris charlesr.har...@gmail.com wrote: Plus the g*dawful warning default to only warn once.

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Nathaniel Smith
On Fri, Oct 3, 2014 at 10:00 PM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 5:13 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Oct 2, 2014 at 10:12 PM, Charles R Harris charlesr.har...@gmail.com wrote: Plus the g*dawful warning default to only warn once.

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Charles R Harris
On Fri, Oct 3, 2014 at 3:40 PM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 10:00 PM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 5:13 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Oct 2, 2014 at 10:12 PM, Charles R Harris

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Nathaniel Smith
On Fri, Oct 3, 2014 at 8:12 AM, Robert Kern robert.k...@gmail.com wrote: On Fri, Oct 3, 2014 at 4:29 AM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 3:20 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Oct 2, 2014 at 7:06 PM, Benjamin Root ben.r...@ou.edu wrote:

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Robert Kern
On Sat, Oct 4, 2014 at 12:21 AM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 8:12 AM, Robert Kern robert.k...@gmail.com wrote: On Fri, Oct 3, 2014 at 4:29 AM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 3:20 AM, Charles R Harris charlesr.har...@gmail.com

Re: [Numpy-discussion] 0/0 == 0?

2014-10-03 Thread Nathaniel Smith
On Sat, Oct 4, 2014 at 12:40 AM, Robert Kern robert.k...@gmail.com wrote: On Sat, Oct 4, 2014 at 12:21 AM, Nathaniel Smith n...@pobox.com wrote: On Fri, Oct 3, 2014 at 8:12 AM, Robert Kern robert.k...@gmail.com wrote: On Fri, Oct 3, 2014 at 4:29 AM, Nathaniel Smith n...@pobox.com wrote: On