<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/core/tests, branch main</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>Merge pull request #23763 from seberg/nep50-fixes-part2</title>
<updated>2023-05-16T19:00:16+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2023-05-16T19:00:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=0200e4a00c6ea90ab433962479f47a927a13ed3e'/>
<id>0200e4a00c6ea90ab433962479f47a927a13ed3e</id>
<content type='text'>
BUG: Fix weak scalar logic for large ints in ufuncs</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Fix weak scalar logic for large ints in ufuncs</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #23659 from seberg/issue-23029</title>
<updated>2023-05-16T15:28:34+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2023-05-16T15:28:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=6a4abb065afa5cd9967b92476cd8a245edf3dfcd'/>
<id>6a4abb065afa5cd9967b92476cd8a245edf3dfcd</id>
<content type='text'>
ENH: Restore TypeError cleanup in array function dispatching</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ENH: Restore TypeError cleanup in array function dispatching</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Address Marten's review</title>
<updated>2023-05-15T15:11:06+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastianb@nvidia.com</email>
</author>
<published>2023-05-15T15:11:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=626d32fc47a9803e706168ea2d72d3584a4696bd'/>
<id>626d32fc47a9803e706168ea2d72d3584a4696bd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix weak scalar logic for large ints in ufuncs</title>
<updated>2023-05-15T10:43:30+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastianb@nvidia.com</email>
</author>
<published>2023-05-10T13:11:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=21602a8b1673a7b468d032ef19c20c53ac15c0b9'/>
<id>21602a8b1673a7b468d032ef19c20c53ac15c0b9</id>
<content type='text'>
This fixes it, breaks warnings (partially), but most or all of
those paths should be errors anyway.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes it, breaks warnings (partially), but most or all of
those paths should be errors anyway.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'main' into deprecate-find-common-type</title>
<updated>2023-05-13T17:02:49+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2023-05-13T17:02:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=5187067d7ad176ee3614beab2b99a524dd719aa8'/>
<id>5187067d7ad176ee3614beab2b99a524dd719aa8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: typo, linting</title>
<updated>2023-05-10T21:22:09+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2023-05-10T21:21:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=5e983f22c3d554377b0541ff46507001123addca'/>
<id>5e983f22c3d554377b0541ff46507001123addca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add fast path for str(scalar_int)</title>
<updated>2023-05-10T18:41:48+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2023-05-10T18:06:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=670842b38005febf64259f268332e46d86233ef0'/>
<id>670842b38005febf64259f268332e46d86233ef0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #23713 from seberg/uint-int-comparisons</title>
<updated>2023-05-07T00:50:09+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2023-05-07T00:50:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=276cc995c5e3860e226c072c9264012d2132c87a'/>
<id>276cc995c5e3860e226c072c9264012d2132c87a</id>
<content type='text'>
ENH: Make signed/unsigned integer comparisons exact</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ENH: Make signed/unsigned integer comparisons exact</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Make signed/unsigned integer comparisons exact</title>
<updated>2023-05-04T14:33:27+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastianb@nvidia.com</email>
</author>
<published>2023-05-04T14:33:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ec8d5db302c0e8597feb058f58863d5e9a6554c1'/>
<id>ec8d5db302c0e8597feb058f58863d5e9a6554c1</id>
<content type='text'>
This makes comparisons between signed and unsigned integers exact
by special-casing promotion in comparison to never promote integers
to floats, but rather promote them to uint64 or int64 and use a
specific loop for that purpose.

This is a bit lazy, it doesn't make the scalar paths fast (they never were
though) nor does it try to vectorize the loop.
Thus, for cases that are not int64/uint64 already and require a cast in
either case, it should be a bit slower.  OTOH, it was never really fast
and the int64/uint64 mix is probably faster since it avoids casting.

---

Now... the reason I was looking into this was, that I had hoped
it would help with NEP 50/weak scalar typing to allow:

    uint64(1) &lt; -1  # annoying that it fails with NEP 50

but, it doesn't actually, because if I use int64 for the -1 then very
large numbers would be a problem...
I could probably(?) add a *specific* "Python integer" ArrayMethod for comparisons
and that could pick `object` dtype and thus get the original Python object
(the loop could then in practice assume a scalar value).

---

In either case, this works, and unless we worry about keeping the behavior
we probably might as well do this.
(Potentially with follow-ups to speed it up.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes comparisons between signed and unsigned integers exact
by special-casing promotion in comparison to never promote integers
to floats, but rather promote them to uint64 or int64 and use a
specific loop for that purpose.

This is a bit lazy, it doesn't make the scalar paths fast (they never were
though) nor does it try to vectorize the loop.
Thus, for cases that are not int64/uint64 already and require a cast in
either case, it should be a bit slower.  OTOH, it was never really fast
and the int64/uint64 mix is probably faster since it avoids casting.

---

Now... the reason I was looking into this was, that I had hoped
it would help with NEP 50/weak scalar typing to allow:

    uint64(1) &lt; -1  # annoying that it fails with NEP 50

but, it doesn't actually, because if I use int64 for the -1 then very
large numbers would be a problem...
I could probably(?) add a *specific* "Python integer" ArrayMethod for comparisons
and that could pick `object` dtype and thus get the original Python object
(the loop could then in practice assume a scalar value).

---

In either case, this works, and unless we worry about keeping the behavior
we probably might as well do this.
(Potentially with follow-ups to speed it up.)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #23699 from ngoldbaum/repeat-remove-array-incref</title>
<updated>2023-05-03T20:05:48+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastianb@nvidia.com</email>
</author>
<published>2023-05-03T20:05:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=24acd973f91871a6fd21e1d4ba62a0ece99861f0'/>
<id>24acd973f91871a6fd21e1d4ba62a0ece99861f0</id>
<content type='text'>
MAINT: refactor PyArray_Repeat to avoid PyArray_INCREF</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MAINT: refactor PyArray_Repeat to avoid PyArray_INCREF</pre>
</div>
</content>
</entry>
</feed>
