Skip to content

Commit

Permalink
Bypass the calculation of *kteqr
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-zheng committed Mar 16, 2024
1 parent 99fa055 commit bd6ff6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions SRC/dkteqr.f
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,8 @@ SUBROUTINE DKTEQR( COMPZ, N, D, E, Z, LDZ, WORK, INFO )
S = SIGN(DLAPY2( P, R ), P)
*
IF(S.EQ.ZERO .OR. R/S.EQ.ZERO) THEN
VA = -ONE
VB = ONE
VC = ONE
VD = ZERO
E(M-1) = ZERO
GO TO 40
ELSEIF(E(M-2).EQ.E(M-1)) THEN
E(M-2) = SQRT2*E(M-2)
E(M-1) = ZERO
Expand Down Expand Up @@ -651,11 +648,8 @@ SUBROUTINE DKTEQR( COMPZ, N, D, E, Z, LDZ, WORK, INFO )
S = SIGN(DLAPY2( P, R ), P)
*
IF(S.EQ.ZERO .OR. R/S.EQ.ZERO) THEN
VA = -ONE
VB = ONE
VC = ONE
VD = ZERO
E(M) = ZERO
GO TO 90
ELSEIF(E(M).EQ.E(M+1)) THEN
E(M) = SQRT2*E(M)
E(M+1) = ZERO
Expand Down
10 changes: 2 additions & 8 deletions SRC/skteqr.f
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,8 @@ SUBROUTINE SKTEQR( COMPZ, N, D, E, Z, LDZ, WORK, INFO )
S = SIGN(SLAPY2( P, R ), P)
*
IF(S.EQ.ZERO .OR. R/S.EQ.ZERO) THEN
VA = -ONE
VB = ONE
VC = ONE
VD = ZERO
E(M-1) = ZERO
GO TO 40
ELSEIF(E(M-2).EQ.E(M-1)) THEN
E(M-2) = SQRT2*E(M-2)
E(M-1) = ZERO
Expand Down Expand Up @@ -651,11 +648,8 @@ SUBROUTINE SKTEQR( COMPZ, N, D, E, Z, LDZ, WORK, INFO )
S = SIGN(SLAPY2( P, R ), P)
*
IF(S.EQ.ZERO .OR. R/S.EQ.ZERO) THEN
VA = -ONE
VB = ONE
VC = ONE
VD = ZERO
E(M) = ZERO
GO TO 90
ELSEIF(E(M).EQ.E(M+1)) THEN
E(M) = SQRT2*E(M)
E(M+1) = ZERO
Expand Down

0 comments on commit bd6ff6c

Please sign in to comment.