<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/core/_methods.py, branch meson</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>API: Add leading underscore to `no_nep50_warning` and `get/set_promotion_state`</title>
<updated>2022-06-15T18:42:02+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2022-06-08T23:35:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=974c865219223742a07375bea1f6da246e3326ef'/>
<id>974c865219223742a07375bea1f6da246e3326ef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Ignore warning rather than forcing output dtype</title>
<updated>2022-06-15T18:42:02+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2022-05-31T19:57:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0bc84203f03eb971a612d9f6c7194ced80291b8a'/>
<id>0bc84203f03eb971a612d9f6c7194ced80291b8a</id>
<content type='text'>
Forcing the output dtype does not work here, since it actually
can be integral (not that this is usually a good idea).
In practice, the change we are doing here is forcing 64bit (or
32bit depending on platform) of precision for the calculation.

This means that the change will only ever increase precision mildly
compared to the current situation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Forcing the output dtype does not work here, since it actually
can be integral (not that this is usually a good idea).
In practice, the change we are doing here is forcing 64bit (or
32bit depending on platform) of precision for the calculation.

This means that the change will only ever increase precision mildly
compared to the current situation.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Fortify methods (in-place division) against promotion changes</title>
<updated>2022-06-15T18:42:02+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2022-05-27T16:04:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=09d407a3cd24b712f8a40748262e00188e8b8efa'/>
<id>09d407a3cd24b712f8a40748262e00188e8b8efa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>PERF: Use python integer on _count_reduce_items (#21465)</title>
<updated>2022-05-11T09:51:37+00:00</updated>
<author>
<name>Pieter Eendebak</name>
<email>pieter.eendebak@gmail.com</email>
</author>
<published>2022-05-11T09:51:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=42dc6537497d563612eab053d9dbf497d210a5a7'/>
<id>42dc6537497d563612eab053d9dbf497d210a5a7</id>
<content type='text'>
Small micro-optimization, since using Python integers is generally a bit faster in the loop.
The effect is small, so this could undone if anyone figures it is cleaner the other way.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Small micro-optimization, since using Python integers is generally a bit faster in the loop.
The effect is small, so this could undone if anyone figures it is cleaner the other way.</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fixed an issue wherein `var` would raise for 0d object arrays</title>
<updated>2021-09-09T09:02:07+00:00</updated>
<author>
<name>Bas van Beek</name>
<email>b.f.van.beek@vu.nl</email>
</author>
<published>2021-09-09T09:02:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4f470b35308d93b44215c6adc22636e1176de6fd'/>
<id>4f470b35308d93b44215c6adc22636e1176de6fd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Use new argument parsing for array creation functions</title>
<updated>2021-03-18T20:37:20+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2020-12-06T04:38:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=f531110689a646f574ad1529d78b6047cf397f3e'/>
<id>f531110689a646f574ad1529d78b6047cf397f3e</id>
<content type='text'>
The array creation functions have the most to gain:

1. np.asarray is 4 times faster and commonly used.
2. Other functions are wrapped using __array_function__ in Python
   making it more difficult

This commit (unfortunatly) has to do a few things:

* Modify __array_function__ C-side dispatching to accomodate
  the fastcall argument convention.
* Move asarray, etc. to C after removing all "fast paths" from
  np.array (simplifying the code)
* Fixup imports, since asarray was imported directly in a few places
* Replace some places where `np.array` was probably used for speed
  instead of np.asarray or similar. (or by accident in 1 or 2 places)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The array creation functions have the most to gain:

1. np.asarray is 4 times faster and commonly used.
2. Other functions are wrapped using __array_function__ in Python
   making it more difficult

This commit (unfortunatly) has to do a few things:

* Modify __array_function__ C-side dispatching to accomodate
  the fastcall argument convention.
* Move asarray, etc. to C after removing all "fast paths" from
  np.array (simplifying the code)
* Fixup imports, since asarray was imported directly in a few places
* Replace some places where `np.array` was probably used for speed
  instead of np.asarray or similar. (or by accident in 1 or 2 places)
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fixed ``where`` keyword for ``np.mean`` &amp; ``np.var`` methods (gh-18560)</title>
<updated>2021-03-11T22:59:16+00:00</updated>
<author>
<name>Mateusz Sokół</name>
<email>8431159+mtsokol@users.noreply.github.com</email>
</author>
<published>2021-03-11T22:59:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c5de5b5c2cf048e1556f31dfcfa031c8f624b98e'/>
<id>c5de5b5c2cf048e1556f31dfcfa031c8f624b98e</id>
<content type='text'>
* Fixed  keyword bug

* Added test case

* Reverted to original notation

* Added tests for var and std

Closes gh-18552</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fixed  keyword bug

* Added test case

* Reverted to original notation

* Added tests for var and std

Closes gh-18552</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Replace `contextlib_nullcontext` with `contextlib.nullcontext`</title>
<updated>2020-12-05T12:22:39+00:00</updated>
<author>
<name>Bas van Beek</name>
<email>b.f.van.beek@vu.nl</email>
</author>
<published>2020-12-05T12:22:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b2778a8a6d99dfbfee8f09daf6c069d1acf1aa8d'/>
<id>b2778a8a6d99dfbfee8f09daf6c069d1acf1aa8d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Micro-optimize where=True path for mean, var, any, and all</title>
<updated>2020-12-02T20:41:59+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2020-12-02T18:39:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=755ea9a83e410c226c24b95cb892da3f64248d42'/>
<id>755ea9a83e410c226c24b95cb892da3f64248d42</id>
<content type='text'>
This removes a 20%-30% overhead, and thus the largest chunk of
slowdown incurred by adding the `where` argument. Most other places
have fast-paths for `where=True`, this one also should have it.

The additional argument does slow down the function versions a bit
more than this, but that is to be expected probably (it has to
build a new argument dict, at some point we might want to move this
to C, but that seems worth much more with FASTCALL logic).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This removes a 20%-30% overhead, and thus the largest chunk of
slowdown incurred by adding the `where` argument. Most other places
have fast-paths for `where=True`, this one also should have it.

The additional argument does slow down the function versions a bit
more than this, but that is to be expected probably (it has to
build a new argument dict, at some point we might want to move this
to C, but that seems worth much more with FASTCALL logic).
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Add where argument to several functions</title>
<updated>2020-07-18T11:10:10+00:00</updated>
<author>
<name>Simon Gasse</name>
<email>sgasse@users.noreply.github.com</email>
</author>
<published>2020-03-26T21:09:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4ec1dbd8864363f77902d77e3d044a26eead31be'/>
<id>4ec1dbd8864363f77902d77e3d044a26eead31be</id>
<content type='text'>
Harmonize the signature of np.mean, np.var np.std, np.any, np.all,
and their respective nd.array methods with np.sum by adding a where
argument, see gh-15818.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Harmonize the signature of np.mean, np.var np.std, np.any, np.all,
and their respective nd.array methods with np.sum by adding a where
argument, see gh-15818.
</pre>
</div>
</content>
</entry>
</feed>
