We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2001650 + fee3857 commit 2cf092bCopy full SHA for 2cf092b
1 file changed
src/rules.jl
@@ -70,7 +70,7 @@
70
71
# We provide this hook for special number types like `Interval`
72
# that need their own special definition of `abs`.
73
-_abs_deriv(x) = signbit(x) ? -one(x) : one(x)
+_abs_deriv(x) = sign(x)
74
75
# binary #
76
#--------#
0 commit comments