Skip to content

Commit 27bdfbe

Browse files
authored
Fix the logaddexp special cases (#239)
As previously written, they would fail in the test suite because of ambiguity about the value of logaddexp(nan, inf).
1 parent 7056089 commit 27bdfbe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/API_specification/elementwise_functions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,8 +944,9 @@ each element `x1_i` of the input array `x1` with the respective element `x2_i` o
944944

945945
For floating-point operands,
946946

947-
- If either `x1_i` or `x2_i` is `NaN`, the result is `NaN`.
948-
- If either `x1_i` or `x2_i` is `+infinity`, the result is `+infinity`.
947+
- If either `x1_i` or `x2_i` is `NaN`, the result is `NaN`.
948+
- If `x1_i` is `+infinity` and `x2_i` is not `NaN`, the result is `+infinity`.
949+
- If `x1_i` is not `NaN` and `x2_i` is `+infinity`, the result is `+infinity`.
949950

950951
#### Parameters
951952

0 commit comments

Comments
 (0)