Repository navigation
Fix dimension error in dhgeqz. - #4873
Open
qlambert-pro wants to merge 1 commit into
Open
qlambert-pro wants to merge 1 commit into
qlambert-pro wants to merge 1 commit into
Conversation
|
Success: Regression testing passed successfully. |
maltelenz
approved these changes
Nov 26, 2026
HansOlsson
reviewed
Nov 26, 2026
HansOlsson
left a comment
Contributor
There was a problem hiding this comment.
The current code is clearly bad, so it needs to be corrected.
As for the correction:
- We normally use size(A, 1) when declaring these matrices, but see the points below.
Other comments on the original code:
- The Q matrix is actually both Q and Z - https://netlib.org/lapack/explore-html/d6/d5a/group__hgeqz_ga09a9424a84d81add5f98aefdbb87a55e.html
- Another option would be to skip Q/Z as it is not referenced (since the second and third arguments are "N"); However, the extra memory for the work area is minimal, so in one sense it doesn't matter, but activating Q/Z requires several changes, in particular splitting them
HansOlsson
reviewed
Nov 26, 2026
Comment on lines
+8375
to
8378
| Real Q[1, n]=fill( | ||
| 0, | ||
| 1, | ||
| n); |
Contributor
There was a problem hiding this comment.
So, to just document the current solution we could do:
Suggested change
| Real Q[1, n]=fill( | |
| 0, | |
| 1, | |
| n); | |
| Real Q[1, 1]=fill( | |
| 0, | |
| 1, | |
| 1) "Dummy for Q and Z, not used in the call"; |
This branch has not been deployed
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.