Repository navigation
Shk/fix dsygvd d - #14
Merged
Merged
Conversation
Three bugs in dsygvd_d.f90 and ssygvd_d.f90 (real symmetric generalized eigenvalue forward mode), confirmed by comparison with the correct complex counterparts zhegvd_d.f90 and chegvd_d.f90: 1. F-matrix sign: Fmat(i,j) = 1/(W(j)-W(i)) → 1/(W(i)-W(j)) 2. Missing -1/2 diag(K_ii) B-orthonormality correction for eigenvector derivatives: dv_i += -0.5 * (v^T dB v)/(v^T B v) * v_i 3. _dv variants (dsygvd_dv, ssygvd_dv): normalization term missing division by vBv_vec(i) All dsygvd/ssygvd tests pass (_d, _dv, _b, _bv). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The test previously only validated eigenvalue derivatives. Now also checks eigenvector derivatives against central finite differences with eigenvalue reordering and sign alignment. Both UPLO=L and UPLO=U pass with W error ~1e-4 and Z error ~3e-5. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sriharikrishna
added a commit
that referenced
this pull request
Dec 6, 2026
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.
No description provided.