Bug fix in ISAM2 wildfire function
parent
f45b1556ca
commit
d4dbf12f8b
|
@ -36,8 +36,8 @@ void optimize2(const GaussianISAM2::sharedClique& clique, double threshold,
|
||||||
// If not redone, then has one of the separator variables changed significantly?
|
// If not redone, then has one of the separator variables changed significantly?
|
||||||
bool recalculate = cliqueReplaced;
|
bool recalculate = cliqueReplaced;
|
||||||
if(!recalculate) {
|
if(!recalculate) {
|
||||||
BOOST_FOREACH(Index frontal, (*clique)->frontals()) {
|
BOOST_FOREACH(Index parent, (*clique)->parents()) {
|
||||||
if(changed[frontal]) {
|
if(changed[parent]) {
|
||||||
recalculate = true;
|
recalculate = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue