Skip to content

Commit

Permalink
Merge pull request #36 from ScottPJones/spj/fixabs2
Browse files Browse the repository at this point in the history
Fix #30 Overwritten abs2
  • Loading branch information
mlubin committed Mar 20, 2016
2 parents ccc83f8 + c8d9601 commit e230121
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dual_n.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ end

for (funsym, exp) in Calculus.symbolic_derivatives_1arg()
funsym == :exp && continue
funsym == :abs2 && continue
@eval function $(funsym)(z::Dual4)
x = real(z)
df = $exp
Expand Down

0 comments on commit e230121

Please sign in to comment.