remove printing

release/4.3a0
Varun Agrawal 2023-07-29 10:13:56 -04:00
parent 8cb33dd4f8
commit 94d737e1db
1 changed files with 0 additions and 10 deletions

View File

@ -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());
@ -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(),