Skip to content

Commit

Permalink
Moved second log1p def into conditional (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ExpandingMan authored and jrevels committed Jun 19, 2018
1 parent 16b1b42 commit 0ffb1ce
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 0ffb1ce

Please sign in to comment.