Skip to content

Commit 6d70a9e

Browse files
committed
fix logjac sign
1 parent 325684e commit 6d70a9e

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
@@ -260,9 +260,9 @@ function tilde_assume!!(
260260
# but it's not clear right now how to do this. In my opinion, the most productive
261261
# way forward would be to standardise the behaviour of bijectors so that we can have
262262
# a clean separation between the linking and vectorisation parts of it.
263-
y, inv_logjac + fwd_logjac
263+
y, -inv_logjac + fwd_logjac
264264
else
265-
x, inv_logjac
265+
x, -inv_logjac
266266
end
267267
# Add the new value to the VarInfo. `push!!` errors if the value already
268268
# exists, hence the need for setindex!!.

0 commit comments

Comments
 (0)