Skip to content

Commit f840dbc

Browse files
committed
fix logjac sign
1 parent 83add24 commit f840dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/contexts/init.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ function tilde_assume!!(
259259
# but it's not clear right now how to do this. In my opinion, the most productive
260260
# way forward would be to standardise the behaviour of bijectors so that we can have
261261
# a clean separation between the linking and vectorisation parts of it.
262-
y, inv_logjac + fwd_logjac
262+
y, -inv_logjac + fwd_logjac
263263
else
264-
x, inv_logjac
264+
x, -inv_logjac
265265
end
266266
# Add the new value to the VarInfo. `push!!` errors if the value already
267267
# exists, hence the need for setindex!!.

0 commit comments

Comments
 (0)