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

Fixes #1886

Merged
merged 7 commits into from
Oct 26, 2024
Merged

Fixes #1886

merged 7 commits into from
Oct 26, 2024

Conversation

varunagrawal
Copy link
Collaborator

@varunagrawal varunagrawal commented Oct 25, 2024

  • Fix matlab wrapping
  • Update Issue Template
  • Make hub_push.sh executable
  • Make chi_squared_quantile inline to avoid multiple definitions error.
  • Remove redundant assignment in NonlinearConjugateGradientOptimizer.

@varunagrawal varunagrawal self-assigned this Oct 25, 2024
@varunagrawal varunagrawal linked an issue Oct 25, 2024 that may be closed by this pull request
@@ -42,7 +42,7 @@ struct GTSAM_EXPORT PCGSolverParameters : public ConjugateGradientParameters {
PCGSolverParameters() {}

PCGSolverParameters(
const std::shared_ptr<PreconditionerParameters> &preconditioner)
const std::shared_ptr<PreconditionerParameters> preconditioner)
Copy link
Member

Choose a reason for hiding this comment

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

Why? Not in PR comment and not backward compatible

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Backwards compatibility is not an issue here since I introduced this constructor last week. If the Matlab wrapper compiles, I'll add the reference & back.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also does a reference to a shared_ptr make sense? The pointer itself is a "reference" and by passing it by value, we encourage the method scope to have ownership and keep the underlying object alive.

Copy link
Member

Choose a reason for hiding this comment

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

Is it depends on what you want. If you want the underlying object to keep a shared pointer until it is deleted you pass by value; if you know that method will just use the value but has no use for afterwards you pass a reference.

@varunagrawal varunagrawal merged commit 210e582 into develop Oct 26, 2024
33 checks passed
@varunagrawal varunagrawal deleted the fixes branch October 26, 2024 23:28
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.

Cannot compile matlab toolbox (wrapper)
2 participants