bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / maximum_sctype
function
numpy:maximum_sctype
source: /dev/numpy/build-install/usr/lib/python3.14/site-packages/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
t: dtype or dtype specifierThe input data type. This can be a
dtypeobject or an object that is convertible to adtype.
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) maximum_sctype(np.uint8) maximum_sctype(complex)✗
maximum_sctype(str)
✓maximum_sctype('i2') maximum_sctype('f4')✗
See also
- dtype
- mintypecode
- obj2sctype
- sctype2char
Aliases
-
numpy._core.numerictypes.maximum_sctype