You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/API_specification/data_types.md
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -110,14 +110,20 @@ Computes the truth value of `self == other` in order to test for data type objec
110
110
(data-type-defaults)=
111
111
## Default Data Types
112
112
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.
114
114
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`).
116
118
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.
118
124
119
125
```{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.
0 commit comments