Skip to content

Commit 8115f50

Browse files
authored
Update guidance for default data types (#322)
* Update guidance for default data types * Update copy
1 parent 1bec0e1 commit 8115f50

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

spec/API_specification/data_types.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,20 @@ Computes the truth value of `self == other` in order to test for data type objec
110110
(data-type-defaults)=
111111
## Default Data Types
112112

113-
A conforming implementation of the array API standard must define a default floating-point data type (either `float32` or `float64`) and a default integer data type (`int32` or `int64`).
113+
A conforming implementation of the array API standard must define the following default data types.
114114

115-
The default data types must be the same across platforms.
115+
- a default floating-point data type (either `float32` or `float64`).
116+
- a default integer data type (either `int32` or `int64`).
117+
- a default array index data type (either `int32` or `int64`).
116118

117-
The default integer data type may vary depending on whether Python is 32-bit or 64-bit.
119+
The default floating-point data type must be the same across platforms.
120+
121+
The default integer data type should be the same across platforms, but the default may vary depending on whether Python is 32-bit or 64-bit.
122+
123+
The default array index data type may be `int32` on 32-bit platforms, but the default should be `int64` otherwise.
118124

119125
```{note}
120-
The default floating-point and integer data types should be clearly defined in a conforming library's documentation.
126+
The default data types should be clearly defined in a conforming library's documentation.
121127
```
122128

123129
(data-type-categories)=

0 commit comments

Comments
 (0)