Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4402 from martin-frbg/lapack967
Browse files Browse the repository at this point in the history
Fix an uninitialized read (use of wrong variable) in ?BBCSD (Reference-LAPACK PR 967)
  • Loading branch information
martin-frbg authored Dec 31, 2023
2 parents 4a15d72 + 00d7476 commit 534de14
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lapack-netlib/SRC/cbbcsd.f
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ SUBROUTINE CBBCSD( JOBU1, JOBU2, JOBV1T, JOBV2T, TRANS, M, P, Q,
CALL SLARTGP( B22BULGE, B22E(I-1), RWORK(IU2SN+I-1),
$ RWORK(IU2CS+I-1), R )
ELSE IF( NU .LT. MU ) THEN
CALL SLARTGS( B21E(I), B21E(I+1), NU, RWORK(IU2CS+I-1),
CALL SLARTGS( B21E(I), B21D(I+1), NU, RWORK(IU2CS+I-1),
$ RWORK(IU2SN+I-1) )
ELSE
CALL SLARTGS( B22D(I), B22E(I), MU, RWORK(IU2CS+I-1),
Expand Down
2 changes: 1 addition & 1 deletion lapack-netlib/SRC/dbbcsd.f
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ SUBROUTINE DBBCSD( JOBU1, JOBU2, JOBV1T, JOBV2T, TRANS, M, P, Q,
CALL DLARTGP( B22BULGE, B22E(I-1), WORK(IU2SN+I-1),
$ WORK(IU2CS+I-1), R )
ELSE IF( NU .LT. MU ) THEN
CALL DLARTGS( B21E(I), B21E(I+1), NU, WORK(IU2CS+I-1),
CALL DLARTGS( B21E(I), B21D(I+1), NU, WORK(IU2CS+I-1),
$ WORK(IU2SN+I-1) )
ELSE
CALL DLARTGS( B22D(I), B22E(I), MU, WORK(IU2CS+I-1),
Expand Down
2 changes: 1 addition & 1 deletion lapack-netlib/SRC/sbbcsd.f
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ SUBROUTINE SBBCSD( JOBU1, JOBU2, JOBV1T, JOBV2T, TRANS, M, P, Q,
CALL SLARTGP( B22BULGE, B22E(I-1), WORK(IU2SN+I-1),
$ WORK(IU2CS+I-1), R )
ELSE IF( NU .LT. MU ) THEN
CALL SLARTGS( B21E(I), B21E(I+1), NU, WORK(IU2CS+I-1),
CALL SLARTGS( B21E(I), B21D(I+1), NU, WORK(IU2CS+I-1),
$ WORK(IU2SN+I-1) )
ELSE
CALL SLARTGS( B22D(I), B22E(I), MU, WORK(IU2CS+I-1),
Expand Down
2 changes: 1 addition & 1 deletion lapack-netlib/SRC/zbbcsd.f
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ SUBROUTINE ZBBCSD( JOBU1, JOBU2, JOBV1T, JOBV2T, TRANS, M, P, Q,
CALL DLARTGP( B22BULGE, B22E(I-1), RWORK(IU2SN+I-1),
$ RWORK(IU2CS+I-1), R )
ELSE IF( NU .LT. MU ) THEN
CALL DLARTGS( B21E(I), B21E(I+1), NU, RWORK(IU2CS+I-1),
CALL DLARTGS( B21E(I), B21D(I+1), NU, RWORK(IU2CS+I-1),
$ RWORK(IU2SN+I-1) )
ELSE
CALL DLARTGS( B22D(I), B22E(I), MU, RWORK(IU2CS+I-1),
Expand Down

0 comments on commit 534de14

Please sign in to comment.