Skip to content

module numpy.dtype

Source: stdlib/numpy/dtype.codon


int8 = Int[8]


int16 = Int[16]


int32 = Int[32]


int64 = int


uint8 = UInt[8]


uint16 = UInt[16]


uint32 = UInt[32]


uint64 = UInt[64]


intp = int64


uintp = uint64


float64 = float


complex128 = complex


bool_ = bool


ubyte = uint8


short = int16


ushort = uint16


intc = int32


uintc = uint32


int_ = int64


uint = uint64


longlong = int64


ulonglong = uint64


single = float32


double = float


longdouble = float


csingle = complex64


cdouble = complex


clongdouble = complex


float_ = double


complex_ = cdouble


longfloat = longdouble


singlecomplex = csingle


cfloat = cdouble


longcomplex = clongdouble


clongfloat = clongdouble


finfo[dtype] @tuple Class is named tuple (cannot write fields)

Fields

dtype: type

Properties

bits @property Method is a class property

iexp @property Method is a class property

machep @property Method is a class property

maxexp @property Method is a class property

minexp @property Method is a class property

negep @property Method is a class property

nexp @property Method is a class property

nmant @property Method is a class property

precision @property Method is a class property

eps @property Method is a class property

epsneg @property Method is a class property

max @property Method is a class property

min @property Method is a class property

resolution @property Method is a class property

smallest_normal @property Method is a class property

smallest_subnormal @property Method is a class property

tiny @property Method is a class property

Magic methods

__new__(x)

__new__(dtype: type)

__repr__(self)

__str__(self)


iinfo[dtype] @tuple Class is named tuple (cannot write fields)

Fields

dtype: type

Properties

bits @property Method is a class property

min @property Method is a class property

max @property Method is a class property

Magic methods

__new__(x)

__new__(int_type: type)

__repr__(self)

__str__(self)