From 7022f5923729d1464c5e2f651c5c8e511cba6875 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Wed, 29 Jan 2025 13:55:12 -0500 Subject: [PATCH] Undo scaling --- gtsam/discrete/DiscreteFactorGraph.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtsam/discrete/DiscreteFactorGraph.cpp b/gtsam/discrete/DiscreteFactorGraph.cpp index f2bae4b9b..6f1f2d592 100644 --- a/gtsam/discrete/DiscreteFactorGraph.cpp +++ b/gtsam/discrete/DiscreteFactorGraph.cpp @@ -228,11 +228,11 @@ namespace gtsam { // We divide both `product` and `sum` by `max(sum)` // since it is faster to compute and when the conditional // is formed by `product/sum`, the scaling term cancels out. - gttic(scale); - DiscreteFactor::shared_ptr denominator = sum->max(sum->size()); - product = product->operator/(denominator); - sum = sum->operator/(denominator); - gttoc(scale); + // gttic(scale); + // DiscreteFactor::shared_ptr denominator = sum->max(sum->size()); + // product = product->operator/(denominator); + // sum = sum->operator/(denominator); + // gttoc(scale); // Ordering keys for the conditional so that frontalKeys are really in front Ordering orderedKeys;