Repository navigation
Compute only eigenvalues in the correspondence update - #2714
Merged
Merged
Conversation
The energy only needs the eigenvalues, and the update is a Cholesky solve with the positive definite system, so the eigenvectors are no longer computed. Fixes #2711.
akenmorris
force-pushed
the
amorris/2711-eigenvalues-only
branch
from
November 20, 2026 15:34
eeb422a to
cb38bc1
Compare
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.
Fix #2711
ComputeEntropyUpdatenow computes eigenvalues only (for the energy) and gets the update from a Cholesky solve withgram/(N-1) + αI, for both the N x N and d x d forms, falling back to the eigendecomposition if the factorization fails. With 2000 shapes and 512 particles the correspondence step goes from about 2.3 s to 0.9 s per iteration and optimize from 5359 s to 3966 s, with the same compactness. Added a test against an explicit inverse.