You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for Typ in (:Number, :Real, :Integer, :AbstractFloat)
@evalbeginisless(x::RealInfinity, y::$Typ) =signbit(x) && y ≠-∞
isless(x::$Typ, y::RealInfinity) =!signbit(y) && x ≠ ∞
+(::$Typ, y::RealInfinity) = y
+(y::RealInfinity, ::$Typ) = y
-(y::RealInfinity, ::$Typ) = y
-(::$Typ, y::RealInfinity) =-y
function*(a::$Typ, y::RealInfinity)
iszero(a) &&throw(ArgumentError("Cannot multiply $a * $y"))
a >0? y : (-y)
endendend
This is fine:
This is also fine:
This is not:
The text was updated successfully, but these errors were encountered: