fix for valgrind invalid read warning
parent
60a6fae171
commit
ff05eee0ca
|
|
@ -172,7 +172,7 @@ bool ISAM2Clique::valuesChanged(const KeySet& replaced,
|
||||||
double threshold) const {
|
double threshold) const {
|
||||||
auto frontals = conditional_->frontals();
|
auto frontals = conditional_->frontals();
|
||||||
if (replaced.exists(frontals.front())) return true;
|
if (replaced.exists(frontals.front())) return true;
|
||||||
auto diff = originalValues - delta.vector(frontals);
|
Vector diff = originalValues - delta.vector(frontals);
|
||||||
return diff.lpNorm<Eigen::Infinity>() >= threshold;
|
return diff.lpNorm<Eigen::Infinity>() >= threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue