<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git, branch v1.22.0rc2</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 #20557 from charris/prepare-for-1.22.0rc2-release</title>
<updated>2021-12-09T22:43:16+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-09T22:43:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0bbe78772c50db4fe3d1c5b8dbec439dc45c00ba'/>
<id>0bbe78772c50db4fe3d1c5b8dbec439dc45c00ba</id>
<content type='text'>
REL: Prepare for the NumPy 1.22.0rc2 release.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
REL: Prepare for the NumPy 1.22.0rc2 release.</pre>
</div>
</content>
</entry>
<entry>
<title>REL: Prepare for the NumPy 1.22.0rc2 release.</title>
<updated>2021-12-09T19:09:15+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-09T19:09:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=42c9cbba06ceb6be958f86e481e871b1a1c7ecf5'/>
<id>42c9cbba06ceb6be958f86e481e871b1a1c7ecf5</id>
<content type='text'>
- Update 1.22.0-notes.rst.
- Update 1.22.0-changelog.rst.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Update 1.22.0-notes.rst.
- Update 1.22.0-changelog.rst.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20548 from charris/backport-20547</title>
<updated>2021-12-09T18:44:50+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-09T18:44:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=cb93f07985f19833edab9f36a38141f7a06ea23a'/>
<id>cb93f07985f19833edab9f36a38141f7a06ea23a</id>
<content type='text'>
REV: Revert adding a default ufunc promoter</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
REV: Revert adding a default ufunc promoter</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Always check for mutated signatures in the legacy resolver</title>
<updated>2021-12-09T01:57:33+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-12-09T00:33:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=d6cc9a4d686a208ac295e2c31b4299493e6fcb5a'/>
<id>d6cc9a4d686a208ac295e2c31b4299493e6fcb5a</id>
<content type='text'>
We can't trust them! Just don't... if they can be cached it does
not matter anyway...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We can't trust them! Just don't... if they can be cached it does
not matter anyway...
</pre>
</div>
</content>
</entry>
<entry>
<title>REV: Revert adding a default ufunc promoter</title>
<updated>2021-12-09T01:57:12+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-12-08T23:57:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=74f1d49483b37b476da47ef6daa025ca7f4d29f7'/>
<id>74f1d49483b37b476da47ef6daa025ca7f4d29f7</id>
<content type='text'>
Adding a default promoter should not be necessary with the
reduction-hack (use output DType to guess loop DType if incompatible
with the loop).

However, using it had two effects:
1. SciPy has a ufunc that has a loop it does not want to exist.
   This loop is homogeneous (unlike the correct one) and gives
   a deprecation warning.  The default promoter would assume the
   homogeneous loop is OK (maybe not ideal) if it exists.
   Since it is a "bad" loop that gives a deprecation warning, it
   is not really true though.
2. Datetime promotion is currently utterly buggy, leading to:
       timedelta.sum(dtype="f8")
   ignoring the `f8` requests.  But we actually end up relying on
   that behaviour in our `np.mean` implementation...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding a default promoter should not be necessary with the
reduction-hack (use output DType to guess loop DType if incompatible
with the loop).

However, using it had two effects:
1. SciPy has a ufunc that has a loop it does not want to exist.
   This loop is homogeneous (unlike the correct one) and gives
   a deprecation warning.  The default promoter would assume the
   homogeneous loop is OK (maybe not ideal) if it exists.
   Since it is a "bad" loop that gives a deprecation warning, it
   is not really true though.
2. Datetime promotion is currently utterly buggy, leading to:
       timedelta.sum(dtype="f8")
   ignoring the `f8` requests.  But we actually end up relying on
   that behaviour in our `np.mean` implementation...
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20541 from charris/prepare-for-1.22.0rc2</title>
<updated>2021-12-08T14:41:37+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-08T14:41:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=cf2e656ca7ab91c829888aac77d43f4fc714afe1'/>
<id>cf2e656ca7ab91c829888aac77d43f4fc714afe1</id>
<content type='text'>
REL: Prepare for NumPy 1.22.0rc2 release.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
REL: Prepare for NumPy 1.22.0rc2 release.</pre>
</div>
</content>
</entry>
<entry>
<title>REL: Prepare for NumPy 1.22.0rc2 release.</title>
<updated>2021-12-08T04:32:24+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-08T04:20:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=34997c590455b0a3ccdc6092dd3424b06893c3fb'/>
<id>34997c590455b0a3ccdc6092dd3424b06893c3fb</id>
<content type='text'>
- Update 1.22.0-changelog.rst.
- Update 1.22.0-notes.rst.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Update 1.22.0-changelog.rst.
- Update 1.22.0-notes.rst.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20539 from charris/backport-20518</title>
<updated>2021-12-08T03:55:46+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-08T03:55:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=999117df12bdbc5f64a3fcbb30bb111daa5c4090'/>
<id>999117df12bdbc5f64a3fcbb30bb111daa5c4090</id>
<content type='text'>
PERF: Fix performance bug in dispatching cache</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PERF: Fix performance bug in dispatching cache</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20538 from charris/backport-20533</title>
<updated>2021-12-08T02:55:24+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-08T02:55:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=57180c32472997d58d12a4f0d5fdeb3a3a5f577a'/>
<id>57180c32472997d58d12a4f0d5fdeb3a3a5f577a</id>
<content type='text'>
BUG: Fix handling of the dtype parameter to numpy.array_api.prod()</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Fix handling of the dtype parameter to numpy.array_api.prod()</pre>
</div>
</content>
</entry>
<entry>
<title>PERF: Fix performance bug in dispatching cache</title>
<updated>2021-12-08T00:55:53+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-12-04T20:03:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=d9391bc4a73d9510924a74be92a9b0a483c0134c'/>
<id>d9391bc4a73d9510924a74be92a9b0a483c0134c</id>
<content type='text'>
In promotion cases, the result of the dispatching was not cached
(at least not as well as it could be).  This lead to large slowdowns
in cases where promotion is necessary, one example:

    a = np.array([3]); b = np.array([3.])
    %timeit a + b

The fix here is fairly small, and almost a cleanup, since I put the
whole `cache=True` logic in the wrong place really.
(I currently do not ever cache promoters, to be fair, this could
be done but should be unnecessary and may require a bit of thought.
Another thing that could be optimized is caching if there is no
matching loop to speed up error paths.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In promotion cases, the result of the dispatching was not cached
(at least not as well as it could be).  This lead to large slowdowns
in cases where promotion is necessary, one example:

    a = np.array([3]); b = np.array([3.])
    %timeit a + b

The fix here is fairly small, and almost a cleanup, since I put the
whole `cache=True` logic in the wrong place really.
(I currently do not ever cache promoters, to be fair, this could
be done but should be unnecessary and may require a bit of thought.
Another thing that could be optimized is caching if there is no
matching loop to speed up error paths.)
</pre>
</div>
</content>
</entry>
</feed>
