Repository navigation
Add Schur vector derivatives to DGEES_D via Sylvester equation - #13
Merged
Merged
Conversation
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
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.
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).