Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion SRC/cbdsqr.f
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
*>
*> \param[out] RWORK
*> \verbatim
*> RWORK is REAL array, dimension (4*N)
*> RWORK is REAL array, dimension (4*(N-1))
*> \endverbatim
*>
*> \param[out] INFO
Expand Down Expand Up @@ -809,6 +809,12 @@ SUBROUTINE CBDSQR( UPLO, N, NCVT, NRU, NCC, D, E, VT, LDVT, U,
*
160 CONTINUE
DO 170 I = 1, N
IF( D( I ).EQ.ZERO ) THEN
*
* Avoid -ZERO
*
D( I ) = ZERO
END IF
IF( D( I ).LT.ZERO ) THEN
D( I ) = -D( I )
*
Expand Down
6 changes: 6 additions & 0 deletions SRC/dbdsqr.f
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,12 @@ SUBROUTINE DBDSQR( UPLO, N, NCVT, NRU, NCC, D, E, VT, LDVT, U,
*
160 CONTINUE
DO 170 I = 1, N
IF( D( I ).EQ.ZERO ) THEN
*
* Avoid -ZERO
*
D( I ) = ZERO
END IF
IF( D( I ).LT.ZERO ) THEN
D( I ) = -D( I )
*
Expand Down
9 changes: 8 additions & 1 deletion SRC/sbdsqr.f
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
*>
*> \param[out] WORK
*> \verbatim
*> WORK is REAL array, dimension (4*N)
*> WORK is REAL array, dimension (4*(N-1))
*> \endverbatim
*>
*> \param[out] INFO
Expand Down Expand Up @@ -817,7 +817,14 @@ SUBROUTINE SBDSQR( UPLO, N, NCVT, NRU, NCC, D, E, VT, LDVT, U,
*
160 CONTINUE
DO 170 I = 1, N
IF( D( I ).EQ.ZERO ) THEN
*
* Avoid -ZERO
*
D( I ) = ZERO
END IF
IF( D( I ).LT.ZERO ) THEN

D( I ) = -D( I )
*
* Change sign of singular vectors, if desired
Expand Down
8 changes: 7 additions & 1 deletion SRC/zbdsqr.f
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
*>
*> \param[out] RWORK
*> \verbatim
*> RWORK is DOUBLE PRECISION array, dimension (4*N)
*> RWORK is DOUBLE PRECISION array, dimension (4*(N-1))
*> \endverbatim
*>
*> \param[out] INFO
Expand Down Expand Up @@ -807,6 +807,12 @@ SUBROUTINE ZBDSQR( UPLO, N, NCVT, NRU, NCC, D, E, VT, LDVT, U,
*
160 CONTINUE
DO 170 I = 1, N
IF( D( I ).EQ.ZERO ) THEN
*
* Avoid -ZERO
*
D( I ) = ZERO
END IF
IF( D( I ).LT.ZERO ) THEN
D( I ) = -D( I )
*
Expand Down