remove hybrid timing flag from DiscreteFactorGraph
parent
5913fd120d
commit
90825b96af
|
@ -131,17 +131,11 @@ namespace gtsam {
|
||||||
DiscreteFactor::shared_ptr product = factors.product();
|
DiscreteFactor::shared_ptr product = factors.product();
|
||||||
gttoc(product);
|
gttoc(product);
|
||||||
|
|
||||||
#if GTSAM_HYBRID_TIMING
|
|
||||||
gttic_(DiscreteNormalize);
|
|
||||||
#endif
|
|
||||||
// Max over all the potentials by pretending all keys are frontal:
|
// Max over all the potentials by pretending all keys are frontal:
|
||||||
auto denominator = product->max(product->size());
|
auto denominator = product->max(product->size());
|
||||||
|
|
||||||
// Normalize the product factor to prevent underflow.
|
// Normalize the product factor to prevent underflow.
|
||||||
product = product->operator/(denominator);
|
product = product->operator/(denominator);
|
||||||
#if GTSAM_HYBRID_TIMING
|
|
||||||
gttoc_(DiscreteNormalize);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return product;
|
return product;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue