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
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,28 @@
6
6
7
7
A conforming implementation of the array API standard must provide and support the following data types.
8
8
9
+
.. note::
10
+
11
+
Data types ("dtypes") are objects that can be used as `dtype` specifiers in functions and methods (e.g., `zeros((2, 3), dtype=float32)`). A conforming implementation may add methods or attributes to data type objects; however, these methods and attributes are not included in this specification.
12
+
13
+
.. note::
14
+
15
+
Implementations may provide other ways to specify data types (e.g.,
16
+
`zeros((2, 3), dtype='f4')`); however, these are not included in this specification.
17
+
9
18
A conforming implementation of the array API standard may provide and support additional data types beyond those described in this specification.
10
19
20
+
A conforming implementation of the array API standard must define a default floating-point data type (either `float32` or `float64`).
21
+
11
22
.. note::
12
23
13
-
These dtypes are objects that can be used as dtype specifiers in functions and methods (e.g., `zeros((2, 3), dtype=float32)`). A conforming implementation may add methods or attributes to dtype objects; these are not part of this specification however.
24
+
The default floating-point data type should be clearly defined in a conforming library's documentation.
25
+
26
+
A conforming implementation of the array API standard must define a default data type for an array index (either `int32` or `int64`).
14
27
15
28
.. note::
16
29
17
-
Implementations may provide others ways to specify dtypes (e.g.,
18
-
`zeros((2, 3), dtype='f4')`); these are not part of this specification however.
30
+
The default array index data type should be clearly defined in a conforming library's documentation.
0 commit comments