@@ -377,7 +377,7 @@ SUBROUTINE CLAQR4( WANTT, WANTZ, N, ILO, IHI, H, LDH, W, ILOZ,
377377* . and greater than or equal to two as required. ====
378378*
379379 NSR = ILAENV( 15 , ' CLAQR4' , JBCMPZ, N, ILO, IHI, LWORK )
380- NSR = MIN ( NSR, ( N+6 ) / 9 , IHI- ILO )
380+ NSR = MIN ( NSR, ( N-3 ) / 6 , IHI- ILO )
381381 NSR = MAX ( 2 , NSR- MOD ( NSR, 2 ) )
382382*
383383* ==== Estimate optimal workspace ====
@@ -425,7 +425,7 @@ SUBROUTINE CLAQR4( WANTT, WANTZ, N, ILO, IHI, H, LDH, W, ILOZ,
425425* ==== NSMAX = the Largest number of simultaneous shifts
426426* . for which there is sufficient workspace. ====
427427*
428- NSMAX = MIN ( ( N+6 ) / 9 , 2 * LWORK / 3 )
428+ NSMAX = MIN ( ( N-3 ) / 6 , 2 * LWORK / 3 )
429429 NSMAX = NSMAX - MOD ( NSMAX, 2 )
430430*
431431* ==== NDFL: an iteration count restarted at deflation. ====
@@ -565,7 +565,7 @@ SUBROUTINE CLAQR4( WANTT, WANTZ, N, ILO, IHI, H, LDH, W, ILOZ,
565565*
566566* ==== Got NS/2 or fewer shifts? Use CLAHQR
567567* . on a trailing principal submatrix to
568- * . get more. (Since NS.LE.NSMAX.LE.(N+6)/9 ,
568+ * . get more. (Since NS.LE.NSMAX.LE.(N-3)/6 ,
569569* . there is enough space below the subdiagonal
570570* . to fit an NS-by-NS scratch array.) ====
571571*
0 commit comments