Skip to content

Add Schur vector derivatives to DGEES_D via Sylvester equation - #13

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

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

Conversation

@sriharikrishna

Copy link
Copy Markdown
Collaborator

Implement dVS = VS * P where P = VS^T * dVS is the skew-symmetric rotation matrix satisfying (PT - TP){i>j} = G{i>j} with G = VS^T * dA * VS. Solve entry-by-entry from the lower triangle of G, which gives P uniquely for distinct eigenvalues.

Previously only eigenvalue derivatives were computed; Schur vector derivatives (VSD) were left as zero. The test validates against central finite differences (8e-10 rel error) and structural checks (skew-symmetry of VS^T*VSD and Sylvester residual both at machine epsilon).

sriharikrishna and others added 2 commits December 4, 2026 12:38
Implement dVS = VS * P where P = VS^T * dVS is the skew-symmetric
rotation matrix satisfying (P*T - T*P)_{i>j} = G_{i>j} with
G = VS^T * dA * VS. Solve entry-by-entry from the lower triangle of G,
which gives P uniquely for distinct eigenvalues.

Previously only eigenvalue derivatives were computed; Schur vector
derivatives (VSD) were left as zero. The test validates against central
finite differences (8e-10 rel error) and structural checks (skew-symmetry
of VS^T*VSD and Sylvester residual both at machine epsilon).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Schur vector derivative computation (dVS = VS * P via Sylvester
equation on the lower triangle of G = VS^T * dA * VS) to:
- sgees_d, cgees_d, zgees_d (precision variants of dgees_d)
- dgeesx_d, sgeesx_d, cgeesx_d, zgeesx_d (extended Schur variants)

For complex variants (c/z), the skew-Hermitian P requires conjugating
G, T entries, and the denominator in the Sylvester solve to get P(j,i)
directly rather than CONJG(P(j,i)).

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