Data type routines#

can_cast(from_, to[, casting])

Returns True if cast between data types can occur according to the casting rule.

min_scalar_type(a)

For scalar a, returns the data type with the smallest size and smallest scalar kind which can hold its value.

result_type(*arrays_and_dtypes)

Returns the type that results from applying the NumPy type promotion rules to the arguments.

common_type(*arrays)

Return a scalar type which is common to the input arrays.

promote_types (alias of numpy.promote_types())

Creating data types#

dtype (alias of numpy.dtype)

format_parser (alias of numpy.rec.format_parser)

Data type information#

finfo (alias of numpy.finfo)

iinfo (alias of numpy.iinfo)

Data type testing#

issubdtype (alias of numpy.issubdtype())

Miscellaneous#

typename (alias of numpy.typename())

mintypecode (alias of numpy.mintypecode())