Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Dirichlet rand overflows #1702 #1886

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Apply #1885 type change to ExpGammaIPSampler
quildtide committed Sep 4, 2024
commit f50e8c8ffe39a84a1305770682e88b91eac75fd5
2 changes: 1 addition & 1 deletion src/samplers/expgamma.jl
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ end

function rand(rng::AbstractRNG, s::ExpGammaIPSampler)
x = log(rand(rng, s.s))
e = randexp(rng)
e = randexp(rng, typeof(x))
return muladd(s.nia, e, x)
end