Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
repair the table
  • Loading branch information
ev-br committed Dec 13, 2024
commit 2174846a7dc27b574a8759ab3a6a5c87218b49f9
54 changes: 27 additions & 27 deletions spec/draft/API_specification/data_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ A conforming implementation of the array API standard *must* provide and support
the following data types ("dtypes") in its array object, and as data type
objects in its main namespace under the specified names:

+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| dtype object | description |
+==============+============================================================================================================================================================================================+
| bool | Boolean (``True`` or ``False``). |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| int8 | An 8-bit signed integer whose values exist on the interval ``[-128, +127]``. |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| int16 | A 16-bit signed integer whose values exist on the interval ``[−32,767, +32,767]``. |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| int32 | A 32-bit signed integer whose values exist on the interval ``[−2,147,483,647, +2,147,483,647]``. |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 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]``. |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uint8 | An 8-bit unsigned integer whose values exist on the interval ``[0, +255]``. |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uint16 | A 16-bit unsigned integer whose values exist on the interval ``[0, +65,535]``. |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uint32 | A 32-bit unsigned integer whose values exist on the interval ``[0, +4,294,967,295]``. |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uint64 | A 64-bit unsigned integer whose values exist on the interval ``[0, +18,446,744,073,709,551,615]``. |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| float32 | IEEE 754 single-precision (32-bit) binary floating-point number (see IEEE 754-2019). |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| float64 | IEEE 754 double-precision (64-bit) binary floating-point number (see IEEE 754-2019). |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| dtype object | description |
+==============+==============================================================================================================================================================================================+
| bool | Boolean (``True`` or ``False``). |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| int8 | An 8-bit signed integer whose values exist on the interval ``[-128, +127]``. |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| int16 | A 16-bit signed integer whose values exist on the interval ``[−32,767, +32,767]``. |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| int32 | A 32-bit signed integer whose values exist on the interval ``[−2,147,483,647, +2,147,483,647]``. |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 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]``. |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uint8 | An 8-bit unsigned integer whose values exist on the interval ``[0, +255]``. |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uint16 | A 16-bit unsigned integer whose values exist on the interval ``[0, +65,535]``. |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uint32 | A 32-bit unsigned integer whose values exist on the interval ``[0, +4,294,967,295]``. |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uint64 | A 64-bit unsigned integer whose values exist on the interval ``[0, +18,446,744,073,709,551,615]``. |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| float32 | IEEE 754 single-precision (32-bit) binary floating-point number (see IEEE 754-2019). |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| float64 | IEEE 754 double-precision (64-bit) binary floating-point number (see IEEE 754-2019). |
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 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). |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 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). |
+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

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

Expand Down