-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Potentials #1013
Remove Potentials #1013
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one!!!
} | ||
} | ||
|
||
/* ************************************************************************* */ | ||
double DecisionTreeFactor::safe_div(const double &a, const double &b) { | ||
// cout << boost::format("%g / %g = %g\n") % a % b % ((a == 0) ? 0 : (a / b)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kill this line?
gtsam/discrete/Potentials.h
Outdated
* @deprecated | ||
* @brief Deprecated class for storing an ADT with some convenience methods | ||
* */ | ||
typedef GTSAM_DEPRECATED AlgebraicDecisionTree<Key> Potentials; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just kill - nobody used this ever I think
gtsam/inference/BayesTree.h
Outdated
typedef Clique Node; ///< Synonym for Clique (TODO: remove) | ||
typedef sharedClique sharedNode; ///< Synonym for sharedClique (TODO: remove) | ||
|
||
typedef GTSAM_DEPRECATED Clique Node; ///< Synonym for Clique (TODO: remove) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All deprecated should be at end of class in ifdef block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Merge whenever CI passes ^_^
gtsam/inference/BayesTree.h
Outdated
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42 | ||
public: | ||
typedef GTSAM_DEPRECATED Clique Node; ///< Synonym for Clique (TODO: remove) | ||
typedef GTSAM_DEPRECATED sharedClique sharedNode; ///< Synonym for sharedClique (TODO: remove) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is the breaker. We should undo it since it is a much bigger effort which is also tangential to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, it seems unrelated and should be it’s own PR. If it is in fact appropriate, because some of the parallel processing stuff might need this.
Removes the Potentials class and move functionalities to ADT.