Conversation
ahojnnes
added this pull request to stack #4772
September 22, 2026 07:17
ahojnnes
force-pushed
the
user/jsch/sphere-manifold-nd
branch
from
September 22, 2026 07:33
a28d157 to
a391ab2
Compare
B1ueber2y
reviewed
Sep 22, 2026
B1ueber2y
left a comment
Contributor
There was a problem hiding this comment.
Thank you! Can we somehow support SphereManifold<2> as well (this is for example useful to represent 3D lines with minimal parametrization of Plucker coordinate? For now Matrix<double, N, N-1, RowMajor> with N-1 == 1 is an ill-formed Eigen type.
B1ueber2y
approved these changes
Sep 22, 2026
Replace SphereManifold's R^3-specific tangent basis with a templated implementation: closed form for N=3, Householder reflection otherwise. Both keep the solver allocation-free. Add SphereManifold9 retract/Jacobian tests.
ahojnnes
force-pushed
the
user/jsch/sphere-manifold-nd
branch
from
September 22, 2026 08:44
a391ab2 to
7b65a22
Compare
Contributor
Author
|
Done — |
sarlinpe
approved these changes
Sep 22, 2026
This branch has not been deployed
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.
Generalizes
SphereManifoldfrom the 2-sphere to R^N, including the circle (N=2): the N=3 closed-form tangent basis is kept, general N uses a Householder reflection. Both paths keep the solver allocation-free. Needed for the 8-sphere homography parameterization in #4770.Test plan:
estimators_cost_functions/tiny_manifold_test(incl. newSphereManifold2/SphereManifold9tests) andoptim/tiny_solver_test(incl. new S1 convergence test) pass.