Skip to content

Commit 4f719d7

Browse files
authored
Use log1pexp in logistic_logjac
1 parent a8cab22 commit 4f719d7

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)