vararg plus
This commit is contained in:
parent
dfc75df407
commit
d92e16be5d
@ -4,7 +4,7 @@ vertex(a...) = IVertex{Any}(a...)
|
||||
|
||||
∇graph(f, ∇, a) = (@v(∇ .* ∇₁(f)(a)),)
|
||||
|
||||
∇graph(::typeof(+), ∇, a, b) = ∇, ∇
|
||||
∇graph(::typeof(+), ∇, a...) = (∇ for _ in a)
|
||||
|
||||
∇graph(::typeof(-), ∇, a, b) = ∇, @v(-∇)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user