<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git, branch v1.23.3</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>Merge pull request #22234 from charris/prepare-1.23.3-release</title>
<updated>2022-09-09T13:07:53+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2022-09-09T13:07:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e47cbb69bebf36007c3ea009aee03e4bfe3b3f3d'/>
<id>e47cbb69bebf36007c3ea009aee03e4bfe3b3f3d</id>
<content type='text'>
REL: Prepare for the NumPy 1.23.3 release.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
REL: Prepare for the NumPy 1.23.3 release.</pre>
</div>
</content>
</entry>
<entry>
<title>REL: Prepare for the NumPy 1.23.3 release.</title>
<updated>2022-09-08T20:23:06+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2022-09-08T18:30:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e0e8991301dfe9148eab058477505a4ca8238af6'/>
<id>e0e8991301dfe9148eab058477505a4ca8238af6</id>
<content type='text'>
- Update mailmap.
- Update 1.23.3-notes.rst
- Create 1.23.3-changelog.rst.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Update mailmap.
- Update 1.23.3-notes.rst
- Create 1.23.3-changelog.rst.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Better report integer division overflow (backport) (#22230)</title>
<updated>2022-09-08T18:02:20+00:00</updated>
<author>
<name>Ganesh Kathiresan</name>
<email>ganesh3597@gmail.com</email>
</author>
<published>2022-09-08T18:02:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=9bf22bb443582474913696139249e2b6331e53d7'/>
<id>9bf22bb443582474913696139249e2b6331e53d7</id>
<content type='text'>
* BUG, SIMD: Handle overflow errors

Overflows for remainder/divmod/fmod

* If a types minimum value is divided by -1, an overflow will be raised
  and result will be set to minimum
* Handle overflow and return 0 in case of mod related operations

* TST: New tests for overflow in division operations

* SIMD: Removed cvtozero

Co-authored-by: Rafael Cardoso Fernandes Sousa &lt;rafaelcfsousa@ibm.com&gt;

* TST: Removed eval | Fixed raises cases

* TST: Changed `raise` to `warns`

* Changed `raise` to `warns` and test for `RuntimeWarning`
* Added results check back

* TST: Add additional tests for division-by-zero and integer overflow

This introduces a helper to iterate through "interesting" array cases
that could maybe be used in other places.  Keep the other test intact,
it adds a check for mixed types (which is just casts currently, but
cannot hurt) and is otherwise thorough.

* MAINT: Remove nested NPY_UNLIKELY in division paths

I am not certain the unlikely cases make much sense to begin with,
but they are certainly not helpful within an unlikely block.

* TST: Add unsigned integers to integer divide-by-zero test

* BUG: Added missing `NAME` key to loop generator

* BUG, SIMD: Handle division overflow errors

* If a types minimum value is divided by -1, an overflow will be raised
  and result will be set to minimum

* TST: Modified tests to reflect new overflow

* Update numpy/core/src/umath/loops_arithmetic.dispatch.c.src

Co-authored-by: Rafael Sousa &lt;90851201+rafaelcfsousa@users.noreply.github.com&gt;

Co-authored-by: Rafael Cardoso Fernandes Sousa &lt;rafaelcfsousa@ibm.com&gt;
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;
Co-authored-by: Rafael Sousa &lt;90851201+rafaelcfsousa@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* BUG, SIMD: Handle overflow errors

Overflows for remainder/divmod/fmod

* If a types minimum value is divided by -1, an overflow will be raised
  and result will be set to minimum
* Handle overflow and return 0 in case of mod related operations

* TST: New tests for overflow in division operations

* SIMD: Removed cvtozero

Co-authored-by: Rafael Cardoso Fernandes Sousa &lt;rafaelcfsousa@ibm.com&gt;

* TST: Removed eval | Fixed raises cases

* TST: Changed `raise` to `warns`

* Changed `raise` to `warns` and test for `RuntimeWarning`
* Added results check back

* TST: Add additional tests for division-by-zero and integer overflow

This introduces a helper to iterate through "interesting" array cases
that could maybe be used in other places.  Keep the other test intact,
it adds a check for mixed types (which is just casts currently, but
cannot hurt) and is otherwise thorough.

* MAINT: Remove nested NPY_UNLIKELY in division paths

I am not certain the unlikely cases make much sense to begin with,
but they are certainly not helpful within an unlikely block.

* TST: Add unsigned integers to integer divide-by-zero test

* BUG: Added missing `NAME` key to loop generator

* BUG, SIMD: Handle division overflow errors

* If a types minimum value is divided by -1, an overflow will be raised
  and result will be set to minimum

* TST: Modified tests to reflect new overflow

* Update numpy/core/src/umath/loops_arithmetic.dispatch.c.src

Co-authored-by: Rafael Sousa &lt;90851201+rafaelcfsousa@users.noreply.github.com&gt;

Co-authored-by: Rafael Cardoso Fernandes Sousa &lt;rafaelcfsousa@ibm.com&gt;
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;
Co-authored-by: Rafael Sousa &lt;90851201+rafaelcfsousa@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #22224 from charris/backport-21928</title>
<updated>2022-09-07T19:17:26+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2022-09-07T19:17:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0f0d355c20522366157631800ed4a0922b40d21c'/>
<id>0f0d355c20522366157631800ed4a0922b40d21c</id>
<content type='text'>
BUG: Fix the implementation of numpy.array_api.vecdot</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Fix the implementation of numpy.array_api.vecdot</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #22223 from charris/backport-21981</title>
<updated>2022-09-07T19:16:28+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2022-09-07T19:16:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=55a5ca743c19602cb28083fbcf3138b34a2f29fd'/>
<id>55a5ca743c19602cb28083fbcf3138b34a2f29fd</id>
<content type='text'>
TST: ensure ``np.equal.reduce`` raises a ``TypeError``</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TST: ensure ``np.equal.reduce`` raises a ``TypeError``</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix the implementation of numpy.array_api.vecdot (#21928)</title>
<updated>2022-09-07T17:23:47+00:00</updated>
<author>
<name>Aaron Meurer</name>
<email>asmeurer@gmail.com</email>
</author>
<published>2022-09-07T16:13:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6cc41836e1d2d12eea8591fe5252ca484f54d6af'/>
<id>6cc41836e1d2d12eea8591fe5252ca484f54d6af</id>
<content type='text'>
* Fix the implementation of numpy.array_api.vecdot

See https://data-apis.org/array-api/latest/API_specification/generated/signatures.linear_algebra_functions.vecdot.html

* Use moveaxis + matmul instead of einsum in vecdot</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix the implementation of numpy.array_api.vecdot

See https://data-apis.org/array-api/latest/API_specification/generated/signatures.linear_algebra_functions.vecdot.html

* Use moveaxis + matmul instead of einsum in vecdot</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Replace assert with correct error</title>
<updated>2022-09-07T17:18:18+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2022-08-05T04:41:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fb9666ff84dbbd1c0f802795399c57db54eeab83'/>
<id>fb9666ff84dbbd1c0f802795399c57db54eeab83</id>
<content type='text'>
If we cache a promoted version of the loop, that promoted can mismatch
the correct one.  This ends up being rejected later in the legacy paths
(should be the only path currently used), but we should reject it here
(or in principle we could reject it after cache lookup, but we are fixing
up the operation DTypes here anyway, so we are looking at the signature).

A call sequence reproducing this directly is:

np.add(1, 2, signature=(bool, int, None))  # should fail

np.add(True, 2)  # A promoted loop
np.add(1, 2, signature=(bool, int, None))  # should still fail

Not that the errors differ, because the first one comes from the old
type resolution code and is currently less precise
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we cache a promoted version of the loop, that promoted can mismatch
the correct one.  This ends up being rejected later in the legacy paths
(should be the only path currently used), but we should reject it here
(or in principle we could reject it after cache lookup, but we are fixing
up the operation DTypes here anyway, so we are looking at the signature).

A call sequence reproducing this directly is:

np.add(1, 2, signature=(bool, int, None))  # should fail

np.add(True, 2)  # A promoted loop
np.add(1, 2, signature=(bool, int, None))  # should still fail

Not that the errors differ, because the first one comes from the old
type resolution code and is currently less precise
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: ensure `np.equal.reduce` raises a `TypeError`</title>
<updated>2022-09-07T17:17:38+00:00</updated>
<author>
<name>Saransh</name>
<email>saransh0701@gmail.com</email>
</author>
<published>2022-07-14T08:40:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fc0d62795a2228afd442703324e29ed10898061a'/>
<id>fc0d62795a2228afd442703324e29ed10898061a</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 #22222 from charris/backport-22212</title>
<updated>2022-09-07T15:43:18+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2022-09-07T15:43:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=754ec89857a37fc8def3b5ca99bd7bb6211a739e'/>
<id>754ec89857a37fc8def3b5ca99bd7bb6211a739e</id>
<content type='text'>
TYP,BUG: Reduce argument validation in C-based ``__class_getitem__`` </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TYP,BUG: Reduce argument validation in C-based ``__class_getitem__`` </pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #22221 from charris/backport-22204</title>
<updated>2022-09-07T14:39:56+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2022-09-07T14:39:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=63ab75d00c4378115dc3e3542e12be7d1a360747'/>
<id>63ab75d00c4378115dc3e3542e12be7d1a360747</id>
<content type='text'>
TST,BUG: Use fork context to fix MacOS savez test</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TST,BUG: Use fork context to fix MacOS savez test</pre>
</div>
</content>
</entry>
</feed>
