Skip to content

Commit 2b8aa42

Browse files
committed
Clarification
1 parent 2bce614 commit 2b8aa42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/array_api_extra/_lib/_funcs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ def isclose(
339339
try:
340340
nrtol = xp.asarray(int(1.0 / rtol), dtype=b.dtype)
341341
except OverflowError:
342+
# rtol * max_int(dtype) < 1, so it's inconsequential
342343
return xp.abs(a - b) <= atol
343344

344345
return xp.abs(a - b) <= (atol + xp.abs(b) // nrtol)

0 commit comments

Comments
 (0)