Promote two DTypes to their common type following NumPy rules Handles special cases for mixed signedness promotion
type Result = Promote<Int32, Float32> // Float32type Result2 = Promote<Bool, Int8> // Int8type Result3 = Promote<Float32, Float64> // Float64type Result4 = Promote<Int8, Uint8> // Int16 (mixed signedness) Copy
type Result = Promote<Int32, Float32> // Float32type Result2 = Promote<Bool, Int8> // Int8type Result3 = Promote<Float32, Float64> // Float64type Result4 = Promote<Int8, Uint8> // Int16 (mixed signedness)
Promote two DTypes to their common type following NumPy rules Handles special cases for mixed signedness promotion