Skip to content
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

Draft
wants to merge 48 commits into
base: develop
Choose a base branch
from

Conversation

varunagrawal
Copy link
Collaborator

Refactor discrete elimination so it is agnostic to the underlying derived type of the DiscreteFactor.

virtual DecisionTreeFactor operator*(const DecisionTreeFactor&) const = 0;
/// Multiply in a DiscreteFactor and return the result as
/// DiscreteFactor
virtual DiscreteFactor::shared_ptr operator*(
Copy link
Collaborator Author

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?)

@dellaert
Copy link
Member

Maybe only "push" if you want me to look again? Every push is a CI

@varunagrawal
Copy link
Collaborator Author

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 DiscreteFactor class would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants