Skip to content
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

Wrong uplo value in LAPACKE_?larfb #877

Closed
1 of 2 tasks
vladimir-ch opened this issue Jul 7, 2023 · 1 comment · Fixed by #878
Closed
1 of 2 tasks

Wrong uplo value in LAPACKE_?larfb #877

vladimir-ch opened this issue Jul 7, 2023 · 1 comment · Fixed by #878

Comments

@vladimir-ch
Copy link
Contributor

Description

LAPACKE_?larfb and LAPACKE_?larfb_work routines compute an uplo value based on the input parameters in order to transpose the trapezoidal matrix V. This computation wrongly uses the parameter left (side) instead of the correct forward (direct).

In other words, instead of

uplo = ( ( left && col ) || !( left || col ) ) ? 'l' : 'u';

the code should do

uplo = ( ( forward && col ) || !( forward || col ) ) ? 'l' : 'u';

With this fix our Gonum tests (for Dlarfb) pass again.

Checklist

  • I've included a minimal example to reproduce the issue
  • I'd be willing to make a PR to solve this issue
@langou
Copy link
Contributor

langou commented Jul 7, 2023

Hi @vladimir-ch, Thanks! A PR from you to fix this issue sounds good to me! @langou.

vladimir-ch added a commit to vladimir-ch/lapack that referenced this issue Jul 7, 2023
The shape of V depends on how the vectors are stored, not from which
side the block reflector is applied.

Fixes Reference-LAPACK#877
mkrainiuk pushed a commit to mkrainiuk/lapack that referenced this issue Aug 1, 2023
The shape of V depends on how the vectors are stored, not from which
side the block reflector is applied.

Fixes Reference-LAPACK#877
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants