| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../generated/numpy.result_type.html | [Back] [Original] |
Returns the type that results from applying the NumPy type promotion rules to the arguments.
The operands of some operation whose result type is needed.
The result type.
See also
Examples
>>> import numpy as np
>>> np.result_type(3, np.arange(7, dtype=np.int8))
dtype('int8')
>>> np.result_type(np.int32, np.complex64)
dtype('complex128')
>>> np.result_type(3.0, -2)
dtype('float64')
| Web Proxy Viewer | New URL | Original Page |