<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/array_api/_set_functions.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>Fix the array API unique_*() functions to not compare nans as equal</title>
<updated>2022-06-03T21:21:19+00:00</updated>
<author>
<name>Aaron Meurer</name>
<email>asmeurer@gmail.com</email>
</author>
<published>2022-06-03T21:21:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=12f83eb7337b840e3cd9026779b99b1af8033bf3'/>
<id>12f83eb7337b840e3cd9026779b99b1af8033bf3</id>
<content type='text'>
The spec requires this, but it is only now possible to implement with the new
equal_nan flag in np.unique().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The spec requires this, but it is only now possible to implement with the new
equal_nan flag in np.unique().
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Return correctly shaped inverse indices in `array_api`</title>
<updated>2022-01-13T10:04:23+00:00</updated>
<author>
<name>Matthew</name>
<email>quitesimplymatt@gmail.com</email>
</author>
<published>2022-01-11T17:04:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=8b967ff2e70afe3a1fd32e33b36f66f34c259139'/>
<id>8b967ff2e70afe3a1fd32e33b36f66f34c259139</id>
<content type='text'>
Specifically for `xp.unique_all()` and `xp.unique_inverse()`
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Specifically for `xp.unique_all()` and `xp.unique_inverse()`
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: A few updates to the array_api (#20066)</title>
<updated>2021-11-12T15:07:23+00:00</updated>
<author>
<name>Aaron Meurer</name>
<email>asmeurer@gmail.com</email>
</author>
<published>2021-11-12T15:07:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ff2e2a1e7eea29d925063b13922e096d14331222'/>
<id>ff2e2a1e7eea29d925063b13922e096d14331222</id>
<content type='text'>
* Allow casting in the array API asarray()

* Restrict multidimensional indexing in the array API namespace

The spec has recently been updated to only require multiaxis (i.e., tuple)
indices in the case where every axis is indexed, meaning there are either as
many indices as axes or the index has an ellipsis.

* Fix type promotion for numpy.array_api.where

where does value-based promotion for 0-dimensional arrays, so we use the same
trick as in the Array operators to avoid this.

* Print empty array_api arrays using empty()

Printing behavior isn't required by the spec. This is just to make things
easier to understand, especially with the array API test suite.

* Fix an incorrect slice bounds guard in the array API

* Disallow multiple different dtypes in the input to np.array_api.meshgrid

* Remove DLPack support from numpy.array_api.asarray()

from_dlpack() should be used to create arrays using DLPack.

* Remove __len__ from the array API array object

* Add astype() to numpy.array_api

* Update the unique_* functions in numpy.array_api

unique() in the array API was replaced with three separate functions,
unique_all(), unique_inverse(), and unique_values(), in order to avoid
polymorphic return types.

Additionally, it should be noted that these functions to not currently conform
to the spec with respect to NaN behavior. The spec requires multiple NaNs to
be returned, but np.unique() returns a single NaN. Since this is currently an
open issue in NumPy to possibly revert, I have not yet worked around this. See
https://github.com/numpy/numpy/issues/20326.

* Add the stream argument to the array API to_device method

This does nothing in NumPy, and is just present so that the signature is valid
according to the spec.

* Use the NamedTuple classes for the type signatures

* Add unique_counts to the array API namespace

* Remove some unused imports

* Update the array_api indexing restrictions

The "multiaxis indexing must index every axis explicitly or use an ellipsis"
was supposed to include any type of index, not just tuple indices.

* Use a simpler type annotation for the array API to_device method

* Fix a test failure in the array_api submodule

The array_api cannot use the NumPy testing functions because array_api arrays
do not mix with NumPy arrays, and also NumPy testing functions may use APIs
that aren't supported in the array API.

* Add dlpack support to the array_api submodule</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Allow casting in the array API asarray()

* Restrict multidimensional indexing in the array API namespace

The spec has recently been updated to only require multiaxis (i.e., tuple)
indices in the case where every axis is indexed, meaning there are either as
many indices as axes or the index has an ellipsis.

* Fix type promotion for numpy.array_api.where

where does value-based promotion for 0-dimensional arrays, so we use the same
trick as in the Array operators to avoid this.

* Print empty array_api arrays using empty()

Printing behavior isn't required by the spec. This is just to make things
easier to understand, especially with the array API test suite.

* Fix an incorrect slice bounds guard in the array API

* Disallow multiple different dtypes in the input to np.array_api.meshgrid

* Remove DLPack support from numpy.array_api.asarray()

from_dlpack() should be used to create arrays using DLPack.

* Remove __len__ from the array API array object

* Add astype() to numpy.array_api

* Update the unique_* functions in numpy.array_api

unique() in the array API was replaced with three separate functions,
unique_all(), unique_inverse(), and unique_values(), in order to avoid
polymorphic return types.

Additionally, it should be noted that these functions to not currently conform
to the spec with respect to NaN behavior. The spec requires multiple NaNs to
be returned, but np.unique() returns a single NaN. Since this is currently an
open issue in NumPy to possibly revert, I have not yet worked around this. See
https://github.com/numpy/numpy/issues/20326.

* Add the stream argument to the array API to_device method

This does nothing in NumPy, and is just present so that the signature is valid
according to the spec.

* Use the NamedTuple classes for the type signatures

* Add unique_counts to the array API namespace

* Remove some unused imports

* Update the array_api indexing restrictions

The "multiaxis indexing must index every axis explicitly or use an ellipsis"
was supposed to include any type of index, not just tuple indices.

* Use a simpler type annotation for the array API to_device method

* Fix a test failure in the array_api submodule

The array_api cannot use the NumPy testing functions because array_api arrays
do not mix with NumPy arrays, and also NumPy testing functions may use APIs
that aren't supported in the array API.

* Add dlpack support to the array_api submodule</pre>
</div>
</content>
</entry>
<entry>
<title>Run (selective) black on the array_api submodule</title>
<updated>2021-08-07T00:23:04+00:00</updated>
<author>
<name>Aaron Meurer</name>
<email>asmeurer@gmail.com</email>
</author>
<published>2021-08-07T00:22:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=8f7d00ed447174d9398af3365709222b529c1cad'/>
<id>8f7d00ed447174d9398af3365709222b529c1cad</id>
<content type='text'>
I've omitted a few changes from black that messed up the readability of some
complicated if statements that were organized logically line-by-line, and some
changes that use unnecessary operator spacing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I've omitted a few changes from black that messed up the readability of some
complicated if statements that were organized logically line-by-line, and some
changes that use unnecessary operator spacing.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the array API unique() function</title>
<updated>2021-08-06T22:57:10+00:00</updated>
<author>
<name>Aaron Meurer</name>
<email>asmeurer@gmail.com</email>
</author>
<published>2021-08-06T22:57:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4063752757a97c444b8913947a0890f2c2387bca'/>
<id>4063752757a97c444b8913947a0890f2c2387bca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename numpy._array_api to numpy.array_api</title>
<updated>2021-08-04T22:50:30+00:00</updated>
<author>
<name>Aaron Meurer</name>
<email>asmeurer@gmail.com</email>
</author>
<published>2021-08-04T22:47:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6e57d829cb6628610e163524f203245b247a2839'/>
<id>6e57d829cb6628610e163524f203245b247a2839</id>
<content type='text'>
Instead of the leading underscore, the experimentalness of the module will be
indicated by omitting a warning on import. That we, we do not have to change
the API from underscore to no underscore when the module is no longer
experimental.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of the leading underscore, the experimentalness of the module will be
indicated by omitting a warning on import. That we, we do not have to change
the API from underscore to no underscore when the module is no longer
experimental.
</pre>
</div>
</content>
</entry>
</feed>
