Skip to content

Commit 08f12ce

Browse files
committed
Use a list-table instead of an rst table
1 parent c4d90fe commit 08f12ce

File tree

2 files changed

+64
-58
lines changed

2 files changed

+64
-58
lines changed

spec/2023.12/API_specification/data_types.rst

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,38 @@ A conforming implementation of the array API standard must provide and support
99
the following data types ("dtypes") in its array object, and as data type
1010
objects in its main namespace under the specified names:
1111

12-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
13-
| dtype object | description |
14-
+==============+============================================================================================================================================================================================+
15-
| bool | Boolean (``True`` or ``False``). |
16-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
17-
| int8 | An 8-bit signed integer whose values exist on the interval ``[-128, +127]``. |
18-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
19-
| int16 | A 16-bit signed integer whose values exist on the interval ``[−32,767, +32,767]``. |
20-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
21-
| int32 | A 32-bit signed integer whose values exist on the interval ``[−2,147,483,647, +2,147,483,647]``. |
22-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
23-
| int64 | A 64-bit signed integer whose values exist on the interval ``[−9,223,372,036,854,775,807, +9,223,372,036,854,775,807]``. |
24-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
25-
| uint8 | An 8-bit unsigned integer whose values exist on the interval ``[0, +255]``. |
26-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
27-
| uint16 | A 16-bit unsigned integer whose values exist on the interval ``[0, +65,535]``. |
28-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
29-
| uint32 | A 32-bit unsigned integer whose values exist on the interval ``[0, +4,294,967,295]``. |
30-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
31-
| uint64 | A 64-bit unsigned integer whose values exist on the interval ``[0, +18,446,744,073,709,551,615]``. |
32-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
33-
| float32 | IEEE 754 single-precision (32-bit) binary floating-point number (see IEEE 754-2019). |
34-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
35-
| float64 | IEEE 754 double-precision (64-bit) binary floating-point number (see IEEE 754-2019). |
36-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
37-
| complex64 | Single-precision (64-bit) complex floating-point number whose real and imaginary components must be IEEE 754 single-precision (32-bit) binary floating-point numbers (see IEEE 754-2019). |
38-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
39-
| complex128 | Double-precision (128-bit) complex floating-point number whose real and imaginary components must be IEEE 754 double-precision (64-bit) binary floating-point numbers (see IEEE 754-2019). |
40-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
12+
.. list-table::
13+
:widths: 20 80
14+
:header-rows: 1
15+
16+
* - dtype object
17+
- description
18+
* - bool
19+
- Boolean (``True`` or ``False``).
20+
* - int8
21+
- An 8-bit signed integer whose values exist on the interval ``[-128, +127]``.
22+
* - int16
23+
- A 16-bit signed integer whose values exist on the interval ``[−32,767, +32,767]``.
24+
* - int32
25+
- A 32-bit signed integer whose values exist on the interval ``[−2,147,483,647, +2,147,483,647]``.
26+
* - int64
27+
- A 64-bit signed integer whose values exist on the interval ``[−9,223,372,036,854,775,807, +9,223,372,036,854,775,807]``.
28+
* - uint8
29+
- An 8-bit unsigned integer whose values exist on the interval ``[0, +255]``.
30+
* - uint16
31+
- A 16-bit unsigned integer whose values exist on the interval ``[0, +65,535]``.
32+
* - uint32
33+
- A 32-bit unsigned integer whose values exist on the interval ``[0, +4,294,967,295]``.
34+
* - uint64
35+
- A 64-bit unsigned integer whose values exist on the interval ``[0, +18,446,744,073,709,551,615]``.
36+
* - float32
37+
- IEEE 754 single-precision (32-bit) binary floating-point number (see IEEE 754-2019).
38+
* - float64
39+
- IEEE 754 double-precision (64-bit) binary floating-point number (see IEEE 754-2019).
40+
* - complex64
41+
- Single-precision (64-bit) complex floating-point number whose real and imaginary components must be IEEE 754 single-precision (32-bit) binary floating-point numbers (see IEEE 754-2019).
42+
* - complex128
43+
- Double-precision (128-bit) complex floating-point number whose real and imaginary components must be IEEE 754 double-precision (64-bit) binary floating-point numbers (see IEEE 754-2019).
4144

4245
Data type objects must have the following methods (no attributes are required):
4346

spec/draft/API_specification/data_types.rst

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,38 @@ A conforming implementation of the array API standard must provide and support
99
the following data types ("dtypes") in its array object, and as data type
1010
objects in its main namespace under the specified names:
1111

12-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
13-
| dtype object | description |
14-
+==============+============================================================================================================================================================================================+
15-
| bool | Boolean (``True`` or ``False``). |
16-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
17-
| int8 | An 8-bit signed integer whose values exist on the interval ``[-128, +127]``. |
18-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
19-
| int16 | A 16-bit signed integer whose values exist on the interval ``[−32,767, +32,767]``. |
20-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
21-
| int32 | A 32-bit signed integer whose values exist on the interval ``[−2,147,483,647, +2,147,483,647]``. |
22-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
23-
| int64 | A 64-bit signed integer whose values exist on the interval ``[−9,223,372,036,854,775,807, +9,223,372,036,854,775,807]``. |
24-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
25-
| uint8 | An 8-bit unsigned integer whose values exist on the interval ``[0, +255]``. |
26-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
27-
| uint16 | A 16-bit unsigned integer whose values exist on the interval ``[0, +65,535]``. |
28-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
29-
| uint32 | A 32-bit unsigned integer whose values exist on the interval ``[0, +4,294,967,295]``. |
30-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
31-
| uint64 | A 64-bit unsigned integer whose values exist on the interval ``[0, +18,446,744,073,709,551,615]``. |
32-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
33-
| float32 | IEEE 754 single-precision (32-bit) binary floating-point number (see IEEE 754-2019). |
34-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
35-
| float64 | IEEE 754 double-precision (64-bit) binary floating-point number (see IEEE 754-2019). |
36-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
37-
| complex64 | Single-precision (64-bit) complex floating-point number whose real and imaginary components must be IEEE 754 single-precision (32-bit) binary floating-point numbers (see IEEE 754-2019). |
38-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
39-
| complex128 | Double-precision (128-bit) complex floating-point number whose real and imaginary components must be IEEE 754 double-precision (64-bit) binary floating-point numbers (see IEEE 754-2019). |
40-
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
12+
.. list-table::
13+
:widths: 20 80
14+
:header-rows: 1
15+
16+
* - dtype object
17+
- description
18+
* - bool
19+
- Boolean (``True`` or ``False``).
20+
* - int8
21+
- An 8-bit signed integer whose values exist on the interval ``[-128, +127]``.
22+
* - int16
23+
- A 16-bit signed integer whose values exist on the interval ``[−32,767, +32,767]``.
24+
* - int32
25+
- A 32-bit signed integer whose values exist on the interval ``[−2,147,483,647, +2,147,483,647]``.
26+
* - int64
27+
- A 64-bit signed integer whose values exist on the interval ``[−9,223,372,036,854,775,807, +9,223,372,036,854,775,807]``.
28+
* - uint8
29+
- An 8-bit unsigned integer whose values exist on the interval ``[0, +255]``.
30+
* - uint16
31+
- A 16-bit unsigned integer whose values exist on the interval ``[0, +65,535]``.
32+
* - uint32
33+
- A 32-bit unsigned integer whose values exist on the interval ``[0, +4,294,967,295]``.
34+
* - uint64
35+
- A 64-bit unsigned integer whose values exist on the interval ``[0, +18,446,744,073,709,551,615]``.
36+
* - float32
37+
- IEEE 754 single-precision (32-bit) binary floating-point number (see IEEE 754-2019).
38+
* - float64
39+
- IEEE 754 double-precision (64-bit) binary floating-point number (see IEEE 754-2019).
40+
* - complex64
41+
- Single-precision (64-bit) complex floating-point number whose real and imaginary components must be IEEE 754 single-precision (32-bit) binary floating-point numbers (see IEEE 754-2019).
42+
* - complex128
43+
- Double-precision (128-bit) complex floating-point number whose real and imaginary components must be IEEE 754 double-precision (64-bit) binary floating-point numbers (see IEEE 754-2019).
4144

4245
Data type objects must have the following methods (no attributes are required):
4346

0 commit comments

Comments
 (0)