Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: data-apis/array-api-extra
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.2
Choose a base ref
...
head repository: data-apis/array-api-extra
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.3
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Nov 30, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e97f18e View commit details
  2. REL: set version to 0.3.3

    lucascolley committed Nov 30, 2024
    Copy the full SHA
    ff5c6c2 View commit details
Showing with 4 additions and 4 deletions.
  1. +1 −1 pixi.lock
  2. +1 −1 src/array_api_extra/__init__.py
  3. +2 −2 src/array_api_extra/_lib/_utils.py
2 changes: 1 addition & 1 deletion pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/array_api_extra/__init__.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

from ._funcs import atleast_nd, cov, create_diagonal, expand_dims, kron, setdiff1d, sinc

__version__ = "0.3.2"
__version__ = "0.3.3"

# pylint: disable=duplicate-code
__all__ = [
4 changes: 2 additions & 2 deletions src/array_api_extra/_lib/_utils.py
Original file line number Diff line number Diff line change
@@ -33,11 +33,11 @@ def in1d(
# This code is run to make the code significantly faster
if x2.shape[0] < 10 * x1.shape[0] ** 0.145:
if invert:
mask = xp.ones(x1.shape[0], dtype=xp.bool, device=x1.device)
mask = xp.ones(x1.shape[0], dtype=xp.bool, device=_compat.device(x1))
for a in x2:
mask &= x1 != a
else:
mask = xp.zeros(x1.shape[0], dtype=xp.bool, device=x1.device)
mask = xp.zeros(x1.shape[0], dtype=xp.bool, device=_compat.device(x1))
for a in x2:
mask |= x1 == a
return mask