Skip to content

Commit

Permalink
fix wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Dec 9, 2024
1 parent 88b36da commit 1152470
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gtsam/discrete/discrete.i
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ virtual class DiscreteFactor : gtsam::Factor {
const gtsam::KeyFormatter& keyFormatter =
gtsam::DefaultKeyFormatter) const;
bool equals(const gtsam::DiscreteFactor& other, double tol = 1e-9) const;
double operator()(const gtsam::DiscreteValues& values) const;
double operator()(const gtsam::Assignment<gtsam::Key>& values) const;
};

#include <gtsam/discrete/DecisionTreeFactor.h>
Expand Down Expand Up @@ -69,7 +69,7 @@ virtual class DecisionTreeFactor : gtsam::DiscreteFactor {

size_t cardinality(gtsam::Key j) const;

double operator()(const gtsam::DiscreteValues& values) const;
double operator()(const gtsam::Assignment<gtsam::Key>& values) const;
gtsam::DecisionTreeFactor operator*(const gtsam::DecisionTreeFactor& f) const;
size_t cardinality(gtsam::Key j) const;
gtsam::DecisionTreeFactor operator/(const gtsam::DecisionTreeFactor& f) const;
Expand Down Expand Up @@ -248,7 +248,6 @@ class DiscreteBayesTree {
void saveGraph(string s,
const gtsam::KeyFormatter& keyFormatter =
gtsam::DefaultKeyFormatter) const;
double operator()(const gtsam::DiscreteValues& values) const;

string markdown(const gtsam::KeyFormatter& keyFormatter =
gtsam::DefaultKeyFormatter) const;
Expand Down

0 comments on commit 1152470

Please sign in to comment.