Skip to content

Conversation

@ACSimon33
Copy link
Contributor

@ACSimon33 ACSimon33 commented Oct 22, 2025

Description

Some matrix arguments in the LAPACKE interfaces were not specified as const, even though they are clearly marked as pure inputs on the Fortran side and are correctly specified as const in the LAPACK C interfaces.

I changed all the pure inputs to be const. That revealed some spurious transpositions of "output" matrices (row-major cases) that are, in fact, only inputs. I removed those as well.

Checklist

  • The documentation has been updated.
  • If the PR solves a specific issue, it is set to be closed on merge.

…oved some spurious transpositions of output matrices that are in fact pure input parameters.
Copy link
Contributor

@langou langou left a comment

Choose a reason for hiding this comment

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

Thanks. That's a lots of work and this is really nice to have proper 'const' in LAPACKE. Thanks a lot.

@langou langou merged commit 48677ee into Reference-LAPACK:master Oct 23, 2025
12 checks passed
@langou
Copy link
Contributor

langou commented Oct 23, 2025

What do you mean by "correctly specified as const in the LAPACK C interfaces"? What are the "LAPACK C interfaces" if not LAPACKE interfaces?

@ACSimon33
Copy link
Contributor Author

With LAPACK C interfaces I meant the C declarations in lapack.h. Those were all correct and I just fixed those in lapacke.h.

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.

2 participants