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

Some Hybrid Improvements #1387

Merged
merged 6 commits into from
Jan 17, 2023
Merged

Some Hybrid Improvements #1387

merged 6 commits into from
Jan 17, 2023

Conversation

varunagrawal
Copy link
Collaborator

  1. HybridFactorGraph::discreteKeys returns a discrete key vector aka DiscreteKeys since they are the main workhorse in discrete.
  2. Made discreteKeySet more efficient by using a STL-style container transform instead of a loop. This also makes the transformation more functional.
  3. Implement MixtureFactor::error(HybridValues) since it was low hanging fruit.
  4. Pass in the formatter when printing the mean of a GaussianConditional. Found this while debugging since I use GTD keys.

@varunagrawal varunagrawal self-assigned this Jan 15, 2023
Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m requesting to leave the keys methods as they are.

gtsam/hybrid/HybridFactorGraph.cpp Outdated Show resolved Hide resolved
@varunagrawal varunagrawal merged commit 7cd3600 into develop Jan 17, 2023
@varunagrawal varunagrawal deleted the discreteKeys-vector branch January 17, 2023 09:00
@dellaert dellaert added this to the Hybrid Inference milestone Feb 7, 2023
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