We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 924b74d commit 1e38e00Copy full SHA for 1e38e00
src/array_api_extra/_funcs.py
@@ -759,7 +759,7 @@ def get(
759
def _update_common(
760
self,
761
at_op: str,
762
- y: Array = _undef,
+ y: Array,
763
/,
764
copy: bool | None = True,
765
xp: ModuleType | None = None,
@@ -783,8 +783,8 @@ def _update_common(
783
if copy:
784
if is_jax_array(x):
785
# Use JAX's at[] or other library that with the same duck-type API
786
- func = getattr(x.at[self._idx], at_op)
787
- return func(y) if y is not _undef else func(), None
+ func = getattr(x.at[idx], at_op)
+ return func(y), None
788
# Emulate at[] behaviour for non-JAX arrays
789
# with a copy followed by an update
790
if xp is None:
0 commit comments