Data Types#
The default floating point type is float32
and the default integer type is
int32
. The table below shows supported values for Dtype
.
Type |
Bytes |
Description |
---|---|---|
|
1 |
Boolean ( |
|
1 |
8-bit unsigned integer |
|
2 |
16-bit unsigned integer |
|
4 |
32-bit unsigned integer |
|
8 |
64-bit unsigned integer |
|
1 |
8-bit signed integer |
|
2 |
16-bit signed integer |
|
4 |
32-bit signed integer |
|
8 |
64-bit signed integer |
|
2 |
16-bit brain float (e8, m7) |
|
2 |
16-bit IEEE float (e5, m10) |
|
4 |
32-bit float |
|
8 |
64-bit complex float |
Data type are aranged in a hierarchy. See the DtypeCategory
object
documentation for more information. Use issubdtype()
to determine if one
dtype
(or category) is a subtype of another category.
An object to hold the type of a |
|
|
Type to hold categories of |
|
Check if a |