-
Notifications
You must be signed in to change notification settings - Fork 778
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
Discrete Elimination Refactor #1919
base: develop
Are you sure you want to change the base?
Conversation
This reverts commit 306a3ba.
gtsam/discrete/DiscreteFactor.h
Outdated
virtual DecisionTreeFactor operator*(const DecisionTreeFactor&) const = 0; | ||
/// Multiply in a DiscreteFactor and return the result as | ||
/// DiscreteFactor | ||
virtual DiscreteFactor::shared_ptr operator*( |
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.
Should this be a DiscreteFactor::shared_ptr
or a DiscreteFactor&
(aka a reference?)
Maybe only "push" if you want me to look again? Every push is a CI |
Yup. I am going to table this PR for the time being since a full refactor may not be needed. I did manage to pull a lot of cool fixes and updates from this PR and merge them into the develop branch so that's a win. For longer term, having a scheme where all operations are polymorphic in the |
Refactor discrete elimination so it is agnostic to the underlying derived type of the
DiscreteFactor
.