Skip to content

Shk/fix dsygvd d - #14

Merged
sriharikrishna merged 2 commits into
mainfrom
shk/fix-dsygvd-d
Dec 5, 2026
Merged

sriharikrishna merged 2 commits into
mainfrom
shk/fix-dsygvd-d

Conversation

@sriharikrishna

Copy link
Copy Markdown
Collaborator

No description provided.

sriharikrishna and others added 2 commits December 4, 2026 12:16
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
sriharikrishna merged commit c94bf75 into main Dec 5, 2026
6 checks passed
sriharikrishna added a commit that referenced this pull request Dec 6, 2026
Resolve conflicts in 20 files: geev/gees _d source and test files
take our analytical versions (supersede PRs #13, #16); gesvd_dv files
take main's SVD fixes (PRs #14, #15).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant