|
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 |
| -``` |
| 9 | +A conforming implementation of the array API standard must define a default floating-point data type (either `float32` or `float64`), as well as a default data type for an array index (either `int32` or `int64`). |
13 | 10 |
|
14 | 11 | ```{note}
|
15 | 12 |
|
16 |
| -Implementations may provide other ways to specify data types (e.g., |
17 |
| -`zeros((2, 3), dtype='f4')`); however, these are not included in this specification. |
18 |
| -``` |
19 |
| - |
20 |
| -A conforming implementation of the array API standard may provide and support additional data types beyond those described in this specification. |
21 |
| - |
22 |
| -A conforming implementation of the array API standard must define a default floating-point data type (either `float32` or `float64`). |
23 |
| - |
24 |
| -```{note} |
25 |
| -
|
26 |
| -The default floating-point data type should be clearly defined in a conforming library's documentation. |
27 |
| -``` |
28 |
| - |
29 |
| -A conforming implementation of the array API standard must define a default data type for an array index (either `int32` or `int64`). |
30 |
| - |
31 |
| -```{note} |
32 |
| -
|
33 |
| -The default array index data type should be clearly defined in a conforming library's documentation. |
| 13 | +The default floating-point and array index integer data types should be clearly defined in a conforming library's documentation. |
34 | 14 | ```
|
35 | 15 |
|
36 | 16 |
|
@@ -77,3 +57,19 @@ IEEE 754 single-precision (32-bit) binary floating-point number (see IEEE 754-20
|
77 | 57 | ## float64
|
78 | 58 |
|
79 | 59 | IEEE 754 double-precision (64-bit) binary floating-point number (see IEEE 754-2019).
|
| 60 | + |
| 61 | + |
| 62 | +:::{admonition} Future extension |
| 63 | +:class: hint |
| 64 | +It is expected that in a future version of this standard, `complex64` and `complex128` |
| 65 | +dtypes will be added. See [array-api/issues/102](https://github.com/data-apis/array-api/issues/102) for details. |
| 66 | +::: |
| 67 | + |
| 68 | +```{note} |
| 69 | +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. |
| 70 | +
|
| 71 | +Implementations may provide other ways to specify data types (e.g., |
| 72 | +`zeros((2, 3), dtype='f4')`); however, these are not included in this specification. |
| 73 | +
|
| 74 | +A conforming implementation of the array API standard may provide and support additional data types beyond those described in this specification. |
| 75 | +``` |
0 commit comments