Skip to content

Commit c368c9f

Browse files
add multi-+ derivative
1 parent 12740a9 commit c368c9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/differentials.jl

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ for (modu, fun, arity) ∈ DiffRules.diffrules()
109109
end
110110
end
111111

112+
derivative(::typeof(+), args::NTuple{T,Operation}, ::Val{i}) where {T,i} = args[i]
113+
112114
function count_order(x)
113115
@assert !(x isa Symbol) "The variable $x must have an order of differentiation that is greater or equal to 1!"
114116
n = 1

0 commit comments

Comments
 (0)