Data type routines

dpnp.can_cast

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

dpnp.result_type

result_type(*arrays_and_dtypes)

Creating data types

dpnp.dtype

dtype(dtype, align=False, copy=False, [metadata])

Data type information

dpnp.finfo

Returns machine limits for floating-point data types.

dpnp.iinfo

Returns machine limits for integer data types.

Data type testing

dpnp.isdtype

Returns a boolean indicating whether a provided dtype is of a specified data type kind.

dpnp.issubdtype

Returns True if the first argument is a type code lower/equal in type hierarchy.

Miscellaneous