Skip to content

Commit

Permalink
Merge 9a7e262 into 16b1b42
Browse files Browse the repository at this point in the history
  • Loading branch information
ExpandingMan committed Jun 19, 2018
2 parents 16b1b42 + 9a7e262 commit 2196aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
if VERSION < v"0.7-"
@define_diffrule Base.gamma(x) = :( digamma($x) * gamma($x) )
@define_diffrule Base.lgamma(x) = :( digamma($x) )
@define_diffrule Base.Math.JuliaLibm.log1p(x) = :( inv($x + 1) )
else
@define_diffrule SpecialFunctions.gamma(x) = :( digamma($x) * gamma($x) )
@define_diffrule SpecialFunctions.lgamma(x) = :( digamma($x) )
end
@define_diffrule Base.Math.JuliaLibm.log1p(x) = :( inv($x + 1) )
@define_diffrule Base.transpose(x) = :( 1 )
@define_diffrule Base.abs(x) = :( signbit($x) ? -one($x) : one($x) )

Expand Down

0 comments on commit 2196aed

Please sign in to comment.