Skip to content

Commit

Permalink
remove printing
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Jul 29, 2023
1 parent 8cb33dd commit 94d737e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions gtsam/discrete/DiscreteFactorGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,12 @@ namespace gtsam {
std::pair<DiscreteConditional::shared_ptr, DecisionTreeFactor::shared_ptr> //
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());

Expand All @@ -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(),
Expand Down

0 comments on commit 94d737e

Please sign in to comment.