Skip to content

result_type

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

See Also

numpy.result_type : The NumPy equivalent

Source code in sparse/numba_backend/_coo/common.py
979
980
981
982
983
984
985
986
987
def result_type(*arrays_and_dtypes):
    """Returns the type that results from applying the NumPy type promotion rules to the
    arguments.

    See Also
    --------
    [`numpy.result_type`][] : The NumPy equivalent
    """
    return np.result_type(*(_as_result_type_arg(x) for x in arrays_and_dtypes))