Python NumPy Types
The types defined by the numpy module.
Contents
-
Python NumPy Types
- Bool_
- Byte
- Complex64
- Complex128
- Complex192
- Complex256
- Float128
- CSingle
- CDouble
- CLongDouble
- Double
- Float16
- Float32
- Float64
- Float96
- Float128
- Half
- IntC
- IntP
- Int_
- Int8
- Int16
- Int32
- Int64
- LongDouble
- LongLong
- ObjectDType
- NDArray
- Short
- Single
- UByte
- UInt
- UInt8
- UInt16
- UInt32
- UInt64
- UIntC
- UIntP
- ULongLong
- UShort
Bool_
numpy.bool_ is a boolean stored as a byte.
Byte
numpy.byte is a C signed char.
Complex64
numpy.complex64 is a 64-bit complex number.
Complex128
numpy.complex128 is a 128-bit complex number.
Complex192
numpy.complex192 is a 192-bit complex number.
Complex256
numpy.complex256 is a 256-bit complex number.
Float128
numpy.float128 is a 128-bit floating point number.
CSingle
The numpy.csingle corresponds to a complex number stored as two single-precision floats (single).
CDouble
The numpy.cdouble corresponds to a complex number stored as two double-precision floats (double).
CLongDouble
The numpy.clongdouble corresponds to a complex number stored as two extended-precision floats (longdouble).
Double
numpy.double is a C double-precision float. Actual size is platform-dependent.
Float16
numpy.float16 is a 16-bit floating point number.
Float32
numpy.float32 is a 32-bit floating point number.
Float64
numpy.float64 is a 64-bit floating point number.
Float96
numpy.float96 is a 96-bit floating point number.
Float128
numpy.float128 is a 128-bit floating point number.
Half
numpy.half is a C half-precision float. Actual size is platform-dependent.
IntC
numpy.intc is a C signed int. Actual size is platform-dependent.
IntP
numpy.intp is a signed integer type the size of an C pointer. Actual size is platform-dependent.
Int_
numpy.int_ is a C signed long. Actual size is platform-dependent.
Int8
numpy.int8 is an 8-bit signed integer type.
Int16
numpy.int16 is a 16-bit signed integer type.
Int32
numpy.int32 is a 32-bit signed integer type.
Int64
numpy.int64 is a 64-bit signed integer type.
LongDouble
numpy.longdouble is a C extended-precision float. Actual size is platform-dependent.
LongLong
numpy.longlong is a C signed long long. Actual size is platform-dependent.
ObjectDType
numpy.dtypes.ObjectDType represents a restriction on columnar data, allowing for optimization of data processing and storage.
NDArray
numpy.ndarray is an N-dimensional array.
Short
numpy.short is a C signed short. Actual size is platform-dependent.
Single
numpy.single is a C single-precision float. Actual size is platform-dependent.
UByte
numpy.ubyte is a C unsigned char.
UInt
numpy.uint is a C unsigned long. Actual size is platform-dependent.
UInt8
numpy.uint8 is an 8-bit unsigned integer type.
UInt16
numpy.uint16 is a 16-bit unsigned integer type.
UInt32
numpy.uint32 is a 32-bit unsigned integer type.
UInt64
numpy.uint64 is a 64-bit unsigned integer type.
UIntC
numpy.uint is a C unsigned int. Actual size is platform-dependent.
UIntP
numpy.uintp is an unsigned integer type the size of an C pointer. Actual size is platform-dependent.
ULongLong
numpy.ulonglong is a C unsigned long long. Actual size is platform-dependent.
UShort
numpy.ushort is a C unsigned short. Actual size is platform-dependent.