Skip to content

Compute only eigenvalues in the correspondence update - #2714

Merged
akenmorris merged 1 commit into
masterfrom
amorris/2711-eigenvalues-only
Nov 21, 2026
Merged

akenmorris merged 1 commit into
masterfrom
amorris/2711-eigenvalues-only

Conversation

@akenmorris

Copy link
Copy Markdown
Contributor

Fix #2711

ComputeEntropyUpdate now computes eigenvalues only (for the energy) and gets the update from a Cholesky solve with gram/(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.

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
akenmorris force-pushed the amorris/2711-eigenvalues-only branch from eeb422a to cb38bc1 Compare November 20, 2026 15:34
@akenmorris
akenmorris merged commit 9c35384 into master Nov 21, 2026
5 checks passed
@akenmorris
akenmorris deleted the amorris/2711-eigenvalues-only branch November 21, 2026 00:42
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.

Correspondence update computes eigenvectors it doesn't need

1 participant