(array_types, scalar_types)
return numba_common_dtype
Used to find common numba dtype for a sequences of numba dtypes each representing some numpy dtype
Used to find common numba dtype for a sequences of numba dtypes each representing some numpy dtype
Used to find common numba dtype for a sequences of numba dtypes each representing some numpy dtype
def find_common_dtype_from_numpy_dtypes(array_types, scalar_types):
    """Used to find common numba dtype for a sequences of numba dtypes each representing some numpy dtype"""
    np_array_dtypes = [numpy_support.as_dtype(dtype) for dtype in array_types]
    np_scalar_dtypes = [numpy_support.as_dtype(dtype) for dtype in scalar_types]
    np_common_dtype = numpy.find_common_type(np_array_dtypes, np_scalar_dtypes)
    numba_common_dtype = numpy_support.from_dtype(np_common_dtype)

    return numba_common_dtype
def find_common_dtype_from_numpy_dtypes ( array_types , scalar_types ) : np_array_dtypes = [ numpy_support . as_dtype ( dtype ) for dtype in array_types ] np_scalar_dtypes = [ numpy_support . as_dtype ( dtype ) for dtype in scalar_types ] np_common_dtype = numpy . find_common_type ( np_array_dtypes , np_scalar_dtypes ) numba_common_dtype = numpy_support . from_dtype ( np_common_dtype ) return numba_common_dtype