Skip to content

Commit 2883dda

Browse files
authored
Merge pull request #125 from devmotion/dw/log1pexp
Use `log1pexp` in `logistic_logjac`
2 parents a8cab22 + 4f719d7 commit 2883dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
function logistic_logjac(x::Real)
66
mx = -abs(x)
7-
mx - 2*log1p(exp(mx))
7+
mx - 2*log1pexp(mx)
88
end
99

1010
logit_logjac(y) = -log(y) - log1p(-y)

0 commit comments

Comments
 (0)