Data Type Routines

cupy.can_cast

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

cupy.result_type

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

cupy.common_type

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

cupy.promote_types (alias of numpy.promote_types())

cupy.min_scalar_type (alias of numpy.min_scalar_type())

cupy.obj2sctype (alias of numpy.obj2sctype())

Creating data types

cupy.dtype (alias of numpy.dtype)

cupy.format_parser (alias of numpy.format_parser)

Data type information

cupy.finfo (alias of numpy.finfo)

cupy.iinfo (alias of numpy.iinfo)

cupy.MachAr (alias of numpy.MachAr)

Data type testing

cupy.issctype (alias of numpy.issctype())

cupy.issubdtype (alias of numpy.issubdtype())

cupy.issubsctype (alias of numpy.issubsctype())

cupy.issubclass_ (alias of numpy.issubclass_())

cupy.find_common_type (alias of numpy.find_common_type())

Miscellaneous

cupy.typename (alias of numpy.typename())

cupy.sctype2char (alias of numpy.sctype2char())

cupy.mintypecode (alias of numpy.mintypecode())