Skip to content

Commit 24a45e0

Browse files
committed
Skip derivatives of integer functions, min, and max
1 parent a297a34 commit 24a45e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/differentials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ derivative(f, args, v) = NoDeriv()
191191
# Pre-defined derivatives
192192
import DiffRules
193193
for (modu, fun, arity) DiffRules.diffrules()
194-
fun in [:*, :+, :abs] && continue # special
194+
fun in [:*, :+, :abs, :mod, :rem, :max, :min] && continue # special
195195
for i 1:arity
196196

197197
expr = if arity == 1

0 commit comments

Comments
 (0)