bundles / numpy 2.4.4 / numpy / _core / numerictypes
module
numpy._core.numerictypes
source: /numpy/_core/numerictypes.py :0
Members
Summary
numerictypes: Define the numeric type objects
Extended Summary
This module is designed so "from numerictypes import *" is safe. Exported symbols include:
Dictionary with all registered number types (including aliases):
sctypeDict
Type objects (not all will be available, depends on platform):
see variable sctypes for which ones you have
Bit-width names
int8 int16 int32 int64 uint8 uint16 uint32 uint64 float16 float32 float64 float96 float128 complex64 complex128 complex192 complex256 datetime64 timedelta64
c-based names
bool
void, str_
byte, ubyte, short, ushort intc, uintc, intp, uintp,
int_, uint, longlong, ulonglong,single, csingle, double, cdouble, longdouble, clongdouble,
As part of the type-hierarchy: xx -- is bit-width
generic
+-> bool (kind=b) +-> number | +-> integer | | +-> signedinteger (intxx) (kind=i) | | | byte | | | short | | | intc | | | intp | | |
int_| | | longlong | | -> unsignedinteger (uintxx) (kind=u) | | ubyte | | ushort | | uintc | | uintp | | uint | | ulonglong | +-> inexact | +-> floating (floatxx) (kind=f) | | half | | single | | double | | longdouble | -> complexfloating (complexxx) (kind=c) | csingle | cdouble | clongdouble +-> flexible | +-> character | | bytes_ (kind=S) | | str_ (kind=U) | | | -> void (kind=V) -> object_ (not used much) (kind=O)
Additional content
numerictypes: Define the numeric type objects
This module is designed so "from numerictypes import *" is safe. Exported symbols include:
Dictionary with all registered number types (including aliases):
sctypeDict
Type objects (not all will be available, depends on platform):
see variable sctypes for which ones you have
Bit-width names
int8 int16 int32 int64 uint8 uint16 uint32 uint64 float16 float32 float64 float96 float128 complex64 complex128 complex192 complex256 datetime64 timedelta64
c-based names
bool
void, str_
byte, ubyte, short, ushort intc, uintc, intp, uintp,
int_, uint, longlong, ulonglong,single, csingle, double, cdouble, longdouble, clongdouble,
As part of the type-hierarchy: xx -- is bit-width
generic
+-> bool (kind=b) +-> number | +-> integer | | +-> signedinteger (intxx) (kind=i) | | | byte | | | short | | | intc | | | intp | | |
int_| | | longlong | | -> unsignedinteger (uintxx) (kind=u) | | ubyte | | ushort | | uintc | | uintp | | uint | | ulonglong | +-> inexact | +-> floating (floatxx) (kind=f) | | half | | single | | double | | longdouble | -> complexfloating (complexxx) (kind=c) | csingle | cdouble | clongdouble +-> flexible | +-> character | | bytes_ (kind=S) | | str_ (kind=U) | | | -> void (kind=V) -> object_ (not used much) (kind=O)
Aliases
-
numpy._core.numerictypes