diff --git a/src/rules.jl b/src/rules.jl index cbd4448..f3590a4 100644 --- a/src/rules.jl +++ b/src/rules.jl @@ -70,7 +70,7 @@ # We provide this hook for special number types like `Interval` # that need their own special definition of `abs`. -_abs_deriv(x) = sign(x) +_abs_deriv(x) = signbit(x) ? -one(x) : one(x) # binary # #--------#