Skip to content

Commit 12e2288

Browse files
oschulzdevmotion
andauthored
Remove custom poislogpdf for ForwardDiff.Dual (#160)
* Fix ForwardDiff of poislogpdf at v of zero * Improve poislogpdf with ForwardDiff Co-authored-by: David Widmann <[email protected]> * Remove custom poislogpdf for ForwardDiff.Dual * Bump version * Mark tests as broken * Mark more tests as broken * Tests only broken on Julia 1.3? * Revert changes Co-authored-by: David Widmann <[email protected]>
1 parent c463960 commit 12e2288

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/forwarddiff.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ function binomlogpdf(n::Int, p::ForwardDiff.Dual{T}, x::Int) where {T}
1212
end
1313

1414

15-
## Poisson
16-
17-
function poislogpdf(v::ForwardDiff.Dual{T}, x::Int) where {T}
18-
FD = ForwardDiff.Dual{T}
19-
val = ForwardDiff.value(v)
20-
Δ = ForwardDiff.partials(v)
21-
return FD(poislogpdf(val, x), Δ * (x/val - 1))
22-
end
23-
24-
2515
## Integer dual ##
2616

2717
function BetaBinomial(n::ForwardDiff.Dual{<:Any, <:Integer}, α::Real, β::Real; check_args = true)

0 commit comments

Comments
 (0)