Skip to content

Commit 569cd74

Browse files
committed
Updates based on PR suggestions
1 parent a94883f commit 569cd74

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/api-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@
2525
partition
2626
setdiff1d
2727
sinc
28+
union1d
2829
```

src/array_api_extra/_lib/_funcs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,4 +749,5 @@ def union1d(a: Array, b: Array, /, *, xp: ModuleType) -> Array:
749749
"""See docstring in `array_api_extra._delegation.py`."""
750750
a = xp.reshape(a, (-1,))
751751
b = xp.reshape(b, (-1,))
752+
# XXX: `sparse` returns NumPy arrays from `unique_values`
752753
return xp.asarray(xp.unique_values(xp.concat([a, b])))

0 commit comments

Comments
 (0)