bundles / numpy 2.4.3 / numpy / maximum_sctype
function
numpy:maximum_sctype
source: /numpy/_core/numerictypes.py:128
Signature
def maximum_sctype(t)Summary
Return the scalar type of highest precision of the same kind as the input.
Extended Summary
Parameters
Returns
out: dtypeThe highest precision data type of the same kind (
dtype.kind) ast.
Examples
from numpy._core.numerictypes import maximum_sctype maximum_sctype(int)✓
<class 'numpy.int64'>
maximum_sctype(np.uint8) maximum_sctype(complex)✗
<class 'numpy.clongdouble'>
maximum_sctype(str)
✓<class 'numpy.str_'>
maximum_sctype('i2')
✓<class 'numpy.int64'>
maximum_sctype('f4')
✗<class 'numpy.longdouble'>
See also
Aliases
numpy._core.numerictypes.maximum_sctype