Skip to content

Commit 5565ac4

Browse files
asmeurerkgryte
andauthored
Indicate that abs() of the minimum integer value for signed dtypes is undefined (#250)
* Indicate that abs() of the minimum integer value for signed dtypes is undefined * Move the abs(smallest signed integer) text into a note * Update copy * Remove blank line * Update copy "smallest" is ambiguous, as could mean `0` or the minimum value (e.g., `-128` for `int8`). * Fix missing article Co-authored-by: Athan <kgryte@gmail.com>
1 parent 7c638f3 commit 5565ac4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/API_specification/elementwise_functions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ A conforming implementation of the array API standard must provide and support t
2424

2525
Calculates the absolute value for each element `x_i` of the input array `x` (i.e., the element-wise result has the same magnitude as the respective element in `x` but has positive sign).
2626

27+
```{note}
28+
For signed integer data types, the absolute value of the minimum representable integer is implementation-dependent.
29+
```
30+
2731
#### Special Cases
2832

2933
For floating-point operands,

0 commit comments

Comments
 (0)