Skip to content

Fix dimension error in dhgeqz. - #4873

Open
qlambert-pro wants to merge 1 commit into
modelica:masterfrom
qlambert-pro:dhgeqz-dimension-fix
Open

qlambert-pro wants to merge 1 commit into
modelica:masterfrom
qlambert-pro:dhgeqz-dimension-fix

Conversation

@qlambert-pro

Copy link
Copy Markdown
Contributor

No description provided.

@MSL-RegressionTesting-CI

Copy link
Copy Markdown

@maltelenz
maltelenz requested a review from HansOlsson November 26, 2026 08:37
@maltelenz maltelenz added the L: Math Issue addresses Modelica.Math label Nov 26, 2026

@HansOlsson HansOlsson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Comment thread Modelica/Math/package.mo
Comment on lines +8375 to 8378
Real Q[1, n]=fill(
0,
1,
n);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L: Math Issue addresses Modelica.Math

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants