On Thu, Sep 18, 2014 at 1:30 PM, Jonathan Helmus wrote:
> On 09/18/2014 12:44 PM, Petr Viktorin wrote:
> > On Thu, Sep 18, 2014 at 7:14 PM, Jonathan Helmus
> wrote:
> >> On 09/18/2014 12:01 PM, Chris Barker wrote:
> >>
> >> Well,
> >>
> >> First of all, numpy and the python math module have a nu
On 09/18/2014 12:44 PM, Petr Viktorin wrote:
> On Thu, Sep 18, 2014 at 7:14 PM, Jonathan Helmus wrote:
>> On 09/18/2014 12:01 PM, Chris Barker wrote:
>>
>> Well,
>>
>> First of all, numpy and the python math module have a number of differences
>> when it comes to handling these kind of special cas
On Do, 2014-09-18 at 19:13 +0200, Sebastian Berg wrote:
> On Thu, 2014-09-18 at 18:55 +0200, Petr Viktorin wrote:
> > Sorry for the lack of subject before.
> >
> > On Thu, Sep 18, 2014 at 6:48 PM, Benjamin Root wrote:
> > > My vote is that NumPy is correct here. I see no reason why
> > float
On Thu, Sep 18, 2014 at 10:44 AM, Petr Viktorin wrote:
> > 2) the use-cases of the math lib and numpy are different, so they maybe
> > _should_ have different handling of this kind of thing.
>
> If you have a reason for the difference, I'd like to hear it.
For one, numpy does array operations,
On Thu, Sep 18, 2014 at 7:14 PM, Jonathan Helmus wrote:
> On 09/18/2014 12:01 PM, Chris Barker wrote:
>
> Well,
>
> First of all, numpy and the python math module have a number of differences
> when it comes to handling these kind of special cases -- and I think that:
>
> 1) numpy needs to do what
On 09/18/2014 12:01 PM, Chris Barker wrote:
Well,
First of all, numpy and the python math module have a number of
differences when it comes to handling these kind of special cases --
and I think that:
1) numpy needs to do what makes the most sense for numpy and NOT
mirror the math lib.
2)
On Thu, 2014-09-18 at 18:55 +0200, Petr Viktorin wrote:
> Sorry for the lack of subject before.
>
> On Thu, Sep 18, 2014 at 6:48 PM, Benjamin Root wrote:
> > My vote is that NumPy is correct here. I see no reason why
> float('inf') / 1
> > and
> float('inf') // 1
> >
Didn't read python
Well,
First of all, numpy and the python math module have a number of differences
when it comes to handling these kind of special cases -- and I think that:
1) numpy needs to do what makes the most sense for numpy and NOT mirror the
math lib.
2) the use-cases of the math lib and numpy are differ
Sorry for the lack of subject before.
On Thu, Sep 18, 2014 at 6:48 PM, Benjamin Root wrote:
> My vote is that NumPy is correct here. I see no reason why
float('inf') / 1
> and
float('inf') // 1
>
> should return different results.
I recommend reading the python-ideas thread; there are
My vote is that NumPy is correct here. I see no reason why
>>> float('inf') / 1
and
>>> float('inf') // 1
should return different results.
Ben Root
On Thu, Sep 18, 2014 at 12:31 PM, Petr Viktorin wrote:
> Hello,
> Over at Python-ideas, there is a thread [0] about the following
> discrepancy:
(Apologies for the lack of subject earlier)
Hello,
Over at Python-ideas, there is a thread [0] about the following discrepancy:
>>> numpy.array(float('inf')) // 1
inf
>>> float('inf') // 1
nan
There are reasons for either result, but I believe it would be very
nice if either Python or Numpy chan
Hello,
Over at Python-ideas, there is a thread [0] about the following discrepancy:
>>> numpy.array(float('inf')) // 1
inf
>>> float('inf') // 1
nan
There are reasons for either result, but I believe it would be very
nice if either Python or Numpy changed, so they would give the same
value.
If an
12 matches
Mail list logo