array-api-extra 0.3.2__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/PKG-INFO +1 -1
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/pixi.lock +1 -1
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/__init__.py +1 -1
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/_lib/_utils.py +2 -2
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.all-contributorsrc +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.gitattributes +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/dependabot.yml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/cd.yml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/ci.yml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/dependabot-auto-merge.yml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/docs-build.yml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/docs-deploy.yml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.gitignore +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.pre-commit-config.yaml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/CONTRIBUTORS.md +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/LICENSE +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/README.md +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/codecov.yml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/api-reference.md +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/conf.py +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/contributing.md +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/contributors.md +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/index.md +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/requirements.txt +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/pyproject.toml +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/_funcs.py +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/_lib/_compat.py +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/_lib/_typing.py +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/py.typed +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/tests/test_funcs.py +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/tests/test_utils.py +0 -0
- {array_api_extra-0.3.2 → array_api_extra-0.3.3}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: array-api-extra
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Extra array functions built on top of the array API standard.
|
|
5
5
|
Project-URL: Homepage, https://github.com/data-apis/array-api-extra
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/data-apis/array-api-extra/issues
|
|
@@ -2,7 +2,7 @@ from __future__ import annotations # https://github.com/pylint-dev/pylint/pull/
|
|
|
2
2
|
|
|
3
3
|
from ._funcs import atleast_nd, cov, create_diagonal, expand_dims, kron, setdiff1d, sinc
|
|
4
4
|
|
|
5
|
-
__version__ = "0.3.
|
|
5
|
+
__version__ = "0.3.3"
|
|
6
6
|
|
|
7
7
|
# pylint: disable=duplicate-code
|
|
8
8
|
__all__ = [
|
|
@@ -33,11 +33,11 @@ def in1d(
|
|
|
33
33
|
# This code is run to make the code significantly faster
|
|
34
34
|
if x2.shape[0] < 10 * x1.shape[0] ** 0.145:
|
|
35
35
|
if invert:
|
|
36
|
-
mask = xp.ones(x1.shape[0], dtype=xp.bool, device=
|
|
36
|
+
mask = xp.ones(x1.shape[0], dtype=xp.bool, device=_compat.device(x1))
|
|
37
37
|
for a in x2:
|
|
38
38
|
mask &= x1 != a
|
|
39
39
|
else:
|
|
40
|
-
mask = xp.zeros(x1.shape[0], dtype=xp.bool, device=
|
|
40
|
+
mask = xp.zeros(x1.shape[0], dtype=xp.bool, device=_compat.device(x1))
|
|
41
41
|
for a in x2:
|
|
42
42
|
mask |= x1 == a
|
|
43
43
|
return mask
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|