140 SUBROUTINE claqhb( UPLO, N, KD, AB, LDAB, S, SCOND, AMAX, EQUED )
147 CHARACTER EQUED, UPLO
153 COMPLEX AB( LDAB, * )
160 parameter( one = 1.0e+0, thresh = 0.1e+0 )
164 REAL CJ, LARGE, SMALL
169 EXTERNAL lsame, slamch
172 INTRINSIC max, min, real
185 small = slamch(
'Safe minimum' ) / slamch(
'Precision' )
188 IF( scond.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
THEN
197 IF( lsame( uplo,
'U' ) )
THEN
203 DO 10 i = max( 1, j-kd ), j - 1
204 ab( kd+1+i-j, j ) = cj*s( i )*ab( kd+1+i-j, j )
206 ab( kd+1, j ) = cj*cj*real( ab( kd+1, j ) )
214 ab( 1, j ) = cj*cj*real( ab( 1, j ) )
215 DO 30 i = j + 1, min( n, j+kd )
216 ab( 1+i-j, j ) = cj*s( i )*ab( 1+i-j, j )
subroutine claqhb(uplo, n, kd, ab, ldab, s, scond, amax, equed)
CLAQHB scales a Hermitian band matrix, using scaling factors computed by cpbequ.