[Numpy-discussion] uint64 and int64 comparisons are now exact

2023-05-07 Thread Sebastian Berg
Hi all,

Just in case anyone has an opinion.  We just merged:

    https://github.com/numpy/numpy/pull/23713/files

That PR makes comparisons like `uint64(2**62) == int64(2**62+1)` exact.

It may seem confusing, why it isn't before.  The reason is that NumPy
promotes `uint64` and `int64` to `float64` which loses precision.

That promotion is odd; the PR changes it only in the context of
comparisons by making sure we don't promote and adding a specific
`uint64` and `int64` comparison (which also solves `uint64` and
`int8`).  Comparisons are probably special enough, since there is no
opportunity to see the intermediate float.

(There should be a larger opportunity for optimizing the comparison.)

Cheers,

Sebastian


___
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com


[Numpy-discussion] next NumPy community meeting - now starting at 5pm UTC

2023-05-07 Thread Inessa Pawson
The next NumPy community meeting will be held this Wednesday, May 10th at
5pm UTC.
Join us via Zoom:
https://us06web.zoom.us/j/83278611437?pwd=ekhoLzlHRjdWc0NOY2FQM0NPemdkZz09.
Everyone is welcome and encouraged to attend.
To add to the meeting agenda the topics you’d like to discuss, follow the
link: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both.
For the notes from the previous meeting, visit:
https://github.com/numpy/archive/blob/main/community_meetings/community-2023-04-26.md
.

-- 
Cheers,
Inessa

Inessa Pawson
Contributor Experience Lead | NumPy
https://numpy.org/
GitHub: inessapawson
___
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com


[Numpy-discussion] Documentation Meeting: Monday May 8th at 4PM UTC

2023-05-07 Thread Ross Barnowski
The next installment of the bi-weekly NumPy documentation meeting will be
held tomorrow, Monday May 8th at 4PM UTC (9AM PDT).

A rolling, editable agenda can be found here:
https://hackmd.io/oB_boakvRqKR-_2jRV-Qjg

- Please feel free to add topics. We hope to see you there!

~Ross
___
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com