-
Notifications
You must be signed in to change notification settings - Fork 765
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
DefaultOrderingFunc in EliminationTraits #1373
Conversation
Ah, I thought you had added a default |
I am not sure how that what would work. Maybe in the future we can update the
Thanks for catching that. Removed from 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.
Awesome. I will merge this, and then resolve conflicts in the refactor.
@varunagrawal I restored the branch, I'll let you delete it. |
} | ||
} | ||
|
||
const VariableIndex index(graph); |
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.
@varunagrawal you potentially introduced a performance loss here, as you are not taking an optional variable index. It might have already been computed and passed in (in fact, we do that by default).
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.
The DefaultOrderingFunc takes an optional VariableIndex. We'll just have to update the HybridOrdering function to deal with that.
Indeed the continuous only version handles the variable index so there should be no performance loss in terms of backwards compatibility.
Added a new trait variable
DefaultOrderingFunc
inEliminationTraits
so that specifying the ordering is now optional for Hybrid Factor Graphs.This change is completely backwards compatible since I've simply set the
DefaultOrderingFunc
for the existing graph types to their previous defaults.@dellaert seems like your formatter is still broken. Python tests ended up getting formatted, but the change is just me removing the ordering from calls to
eliminateSequential
andeliminateMultifrontal
.