Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
72cb613d
Commit
72cb613d
authored
Dec 11, 2019
by
Tiago Peixoto
Browse files
inference: prevent clabel invalidation in multiflip_mcmc_sweep()
parent
6bffcc02
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/inference/blockmodel/graph_blockmodel_multiflip_mcmc.hh
View file @
72cb613d
...
...
@@ -180,12 +180,10 @@ struct MCMC
_state
.
get_empty_block
(
v
);
auto
t
=
uniform_sample
(
_state
.
_empty_blocks
,
rng
);
auto
r
=
_state
.
_b
[
v
];
if
(
_state
.
_coupled_state
!=
nullptr
)
{
auto
r
=
_state
.
_b
[
v
];
_state
.
_coupled_state
->
sample_branch
(
t
,
r
,
rng
);
_state
.
_bclabel
[
t
]
=
_state
.
_bclabel
[
r
];
}
_state
.
_bclabel
[
t
]
=
_state
.
_bclabel
[
r
];
if
(
t
>=
_groups
.
size
())
{
_groups
.
resize
(
t
+
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment