We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
log1pexp
logistic_logjac
1 parent a8cab22 commit 4f719d7Copy full SHA for 4f719d7
src/utilities.jl
@@ -4,7 +4,7 @@
4
5
function logistic_logjac(x::Real)
6
mx = -abs(x)
7
- mx - 2*log1p(exp(mx))
+ mx - 2*log1pexp(mx)
8
end
9
10
logit_logjac(y) = -log(y) - log1p(-y)
0 commit comments