1.6.172. numpy.maximum_sctype¶
-
numpy.maximum_sctype(t)[source]¶ Return the scalar type of highest precision of the same kind as the input.
Parameters: t : dtype or dtype specifier
The input data type. This can be a dtype object or an object that is convertible to a dtype.
Returns: out : dtype
The highest precision data type of the same kind (dtype.kind) as t.
See also
Examples
>>> np.maximum_sctype(np.int) <type 'numpy.int64'> >>> np.maximum_sctype(np.uint8) <type 'numpy.uint64'> >>> np.maximum_sctype(np.complex) <type 'numpy.complex192'>
>>> np.maximum_sctype(str) <type 'numpy.string_'>
>>> np.maximum_sctype('i2') <type 'numpy.int64'> >>> np.maximum_sctype('f4') <type 'numpy.float96'>