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

Subgraph API change #1010

Merged
merged 3 commits into from
Jan 22, 2022
Merged

Subgraph API change #1010

merged 3 commits into from
Jan 22, 2022

Conversation

dellaert
Copy link
Member

@dellaert dellaert commented Jan 5, 2022

This is the first PR from some refactoring I did over the break, to get rid of shared pointers for containers. It is totally appropriate that we use shared pointers for factors (although, maybe we should not!), but it never made sense (I see now) that we used shared pointers for graphs, as they are not really shuffled around like factors.

The big changes that are coming (branches have not been published yet) are mostly in linear, to get a newer and faster API for elimination -- prompted by development in hybrid branch. This PR removes shared pointers from the subgraph API, for starters.

Adding @jlblancoc as a reviewer, partly to get his opinion on above, and @ProfFan as FYI as I know he has a forked branch with lots of shared pointer changes (presumably moving to std::shared_ptr).

@dellaert
Copy link
Member Author

Some love?

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

Looks good to me modulo 2 comments. Would like to hear @jlblancoc's thoughts as well.

gtsam/linear/SubgraphBuilder.cpp Show resolved Hide resolved
gtsam/linear/linear.i Show resolved Hide resolved
@dellaert dellaert merged commit a2caa0c into develop Jan 22, 2022
@dellaert dellaert deleted the feature/subgraph_refactor branch January 22, 2022 01:59
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