Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for variable-size (dynamic dimension) ProductLieGroup compositions and propagates GetDimension()'s return type to size_t across the library and bindings.
Changes:
- Extend
ProductLieGroupto support dynamic factor dimensions with runtime checks and newExpmapoverloads. - Switch manifold dimension APIs (
GetDimension, EKF dimension accessors) frominttosize_tand tighten runtime matrix size validation. - Add/expand tests covering dynamic-dimension product groups and their Jacobians.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/testProductLieGroup.cpp | Adds new tests for dynamic-dimension ProductLieGroup (Vector×Rot3, Vector×Vector) including Jacobian checks and exceptions. |
| tests/testNonlinearOptimizer.cpp | Updates a test trait GetDimension return type to size_t to match the new dimension API. |
| gtsam/slam/PoseTranslationPrior.h | Uses size_t for translation/pose dimensions when building Jacobians. |
| gtsam/nonlinear/ExtendedKalmanFilter-inl.h | Updates EKF internal dimension variable to size_t. |
| gtsam/navigation/navigation.i | Updates SWIG-exposed dimension() signature to size_t. |
| gtsam/navigation/ManifoldEKF.h | Improves runtime matrix-size validation and switches EKF runtime dimension storage/accessors to size_t. |
| gtsam/linear/NoiseModel.h | Removes redundant casts now that GetDimension returns size_t. |
| gtsam/base/VectorSpace.h | Switches GetDimension to size_t and implements DynamicTraits::Expmap for partially dynamic matrices. |
| gtsam/base/ProductLieGroup.h | Introduces dynamic-dimension support, runtime checks, and additional Expmap overloads. |
| gtsam/base/Manifold.h | Changes GetDimensionImpl::GetDimension to return size_t for consistency. |
timeSFMBAL benchmark
Worker runs
|
Member
Author
|
@ProfFan timing is still useless unless caching is disabled. |
rohan-bansal
approved these changes
Mar 8, 2026
Contributor
rohan-bansal
left a comment
There was a problem hiding this comment.
PR looks good, thanks for adding this! Will build upon it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All tests pass, c++ and python. New c++ tests that test variable size capabilities.