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.
Files changed (32) hide show
  1. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/PKG-INFO +1 -1
  2. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/pixi.lock +1 -1
  3. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/__init__.py +1 -1
  4. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/_lib/_utils.py +2 -2
  5. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.all-contributorsrc +0 -0
  6. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.gitattributes +0 -0
  7. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/dependabot.yml +0 -0
  8. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/cd.yml +0 -0
  9. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/ci.yml +0 -0
  10. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/dependabot-auto-merge.yml +0 -0
  11. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/docs-build.yml +0 -0
  12. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.github/workflows/docs-deploy.yml +0 -0
  13. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.gitignore +0 -0
  14. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/.pre-commit-config.yaml +0 -0
  15. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/CONTRIBUTORS.md +0 -0
  16. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/LICENSE +0 -0
  17. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/README.md +0 -0
  18. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/codecov.yml +0 -0
  19. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/api-reference.md +0 -0
  20. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/conf.py +0 -0
  21. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/contributing.md +0 -0
  22. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/contributors.md +0 -0
  23. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/index.md +0 -0
  24. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/docs/requirements.txt +0 -0
  25. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/pyproject.toml +0 -0
  26. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/_funcs.py +0 -0
  27. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/_lib/_compat.py +0 -0
  28. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/_lib/_typing.py +0 -0
  29. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/src/array_api_extra/py.typed +0 -0
  30. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/tests/test_funcs.py +0 -0
  31. {array_api_extra-0.3.2 → array_api_extra-0.3.3}/tests/test_utils.py +0 -0
  32. {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.2
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
@@ -1291,7 +1291,7 @@ packages:
1291
1291
  timestamp: 1722035895436
1292
1292
  - kind: pypi
1293
1293
  name: array-api-extra
1294
- version: 0.3.2
1294
+ version: 0.3.3
1295
1295
  path: .
1296
1296
  sha256: 8f949b727c03da7c3dff8d6ffab9361f273ea2a81a30296f0474707aaad1b227
1297
1297
  requires_dist:
@@ -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.2"
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=x1.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=x1.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