Skip to content

Fix #1134 - Bug in Reference LAPACKE’s cunmlq and zunmlq for row-major layout and side right #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

langou
Copy link
Contributor

@langou langou commented Jun 13, 2025

Bug reported by @neil-lindquist. Thanks Neil!

On line 93 of both lapacke_cunmlq_work.c and lapacke_zunmlq_work.c, m is passed to LAPACKE_zge_trans as the 2nd dimension. However, the 2nd dimension should be r to handle side right correctly. All the other versions of {or,un}m{qr,lq} seem to be correct.

Also line 52 of lapacke_cunmlq.c and lapacke_zunmlq.c have the same issue: m is used for the column dimension instead of r. (Those files also do not currently compute r). The real valued cases have the correct behavior.

…mlq for row-major layout and side right

Bug reported by @neil-lindquist. Thanks Neil!

On line 93 of both lapacke_cunmlq_work.c and lapacke_zunmlq_work.c, m is passed
to LAPACKE_zge_trans as the 2nd dimension. However, the 2nd dimension should be
r to handle side right correctly. All the other versions of {or,un}m{qr,lq} seem
to be correct.

Also line 52 of lapacke_cunmlq.c and lapacke_zunmlq.c have the same issue: m is
used for the column dimension instead of r. (Those files also do not currently
compute r). The real valued cases have the correct behavior.
@langou langou merged commit 14df73a into Reference-LAPACK:master Jun 14, 2025
12 checks passed
@langou langou deleted the try___fix_cunmlq_zunmlq_in_LAPACKE branch June 14, 2025 02:29
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