Skip to content

Commit 2bcc8e6

Browse files
committed
Fix inverted logic typo
1 parent fb3bb9d commit 2bcc8e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

array_api_compat/cupy/_aliases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
# These functions are completely new here. If the library already has them
6666
# (i.e., numpy 2.0), use the library version instead of our wrapper.
6767
if hasattr(cp, 'vecdot'):
68-
vecdot = get_xp(cp)(_aliases.vecdot)
69-
else:
7068
vecdot = cp.vecdot
69+
else:
70+
vecdot = get_xp(cp)(_aliases.vecdot)
7171
if hasattr(cp, 'isdtype'):
7272
isdtype = cp.isdtype
7373
else:

array_api_compat/numpy/_aliases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
# These functions are completely new here. If the library already has them
6666
# (i.e., numpy 2.0), use the library version instead of our wrapper.
6767
if hasattr(np, 'vecdot'):
68-
vecdot = get_xp(np)(_aliases.vecdot)
69-
else:
7068
vecdot = np.vecdot
69+
else:
70+
vecdot = get_xp(np)(_aliases.vecdot)
7171
if hasattr(np, 'isdtype'):
7272
isdtype = np.isdtype
7373
else:

0 commit comments

Comments
 (0)