From ab97706894063a6144cdd79c423f5e7ff7ec64d1 Mon Sep 17 00:00:00 2001 From: acertain Date: Mon, 19 Aug 2024 17:35:58 -0600 Subject: [PATCH] fix? --- src/bijectors/truncated.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bijectors/truncated.jl b/src/bijectors/truncated.jl index cfef407b..b810870b 100644 --- a/src/bijectors/truncated.jl +++ b/src/bijectors/truncated.jl @@ -72,8 +72,7 @@ function truncated_inv_logabsdetjac(y, a, b) y, a, b = promote(y, a, b) lowerbounded, upperbounded = isfinite(a), isfinite(b) if lowerbounded && upperbounded - abs_y = abs(y) - return log(b - a) - abs_y + 2 * LogExpFunctions.log1pexp(-abs_y) + return log(b - a) + y - 2 * LogExpFunctions.log1pexp(y) elseif lowerbounded || upperbounded return y else