Commit 8762fa3
authored
Fix off-by-one NUTS adaptations (#2751)
Closes #2750.
Prior to #2674 the counter
`i` would be initialised to `1` after the first adaptation had happened.
That PR, first released in v0.41, changed it such that the counter `i`
was initialised to `1` before the first adaptation happened. That
should, of course, be zero, which this PR fixes.
I've checked locally and this change makes it such that results from
pre-v0.41 are exactly reproducible now, as long as all else is equal
(e.g. initialisation, discard_initial, etc).1 parent 2b95583 commit 8762fa3
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | 7 | | |
4 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments