diff --git a/gtsam/discrete/DiscreteFactorGraph.cpp b/gtsam/discrete/DiscreteFactorGraph.cpp index e0d2ed4de..4ededbb8b 100644 --- a/gtsam/discrete/DiscreteFactorGraph.cpp +++ b/gtsam/discrete/DiscreteFactorGraph.cpp @@ -204,18 +204,12 @@ namespace gtsam { std::pair // EliminateDiscrete(const DiscreteFactorGraph& factors, const Ordering& frontalKeys) { - factors.print("The Factors to eliminate:"); // PRODUCT: multiply all factors gttic(product); DecisionTreeFactor product; for (auto&& factor : factors) product = (*factor) * product; gttoc(product); - std::cout << "\n\n==========" << std::endl; - std::cout << "Product" << std::endl; - std::cout << std::endl; - product.print(); - // Max over all the potentials by pretending all keys are frontal: auto normalization = product.max(product.size()); @@ -227,10 +221,6 @@ namespace gtsam { DecisionTreeFactor::shared_ptr sum = product.sum(frontalKeys); gttoc(sum); - std::cout << "\n->Sum" << std::endl; - sum->print(); - std::cout << "----------------------" << std::endl; - // Ordering keys for the conditional so that frontalKeys are really in front Ordering orderedKeys; orderedKeys.insert(orderedKeys.end(), frontalKeys.begin(),