142 SUBROUTINE claqhb( UPLO, N, KD, AB, LDAB, S, SCOND, AMAX, EQUED )
150 CHARACTER EQUED, UPLO
156 COMPLEX AB( ldab, * )
163 parameter ( one = 1.0e+0, thresh = 0.1e+0 )
167 REAL CJ, LARGE, SMALL
172 EXTERNAL lsame, slamch
175 INTRINSIC max, min, real
188 small = slamch(
'Safe minimum' ) / slamch(
'Precision' )
191 IF( scond.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
THEN
200 IF( lsame( uplo,
'U' ) )
THEN
206 DO 10 i = max( 1, j-kd ), j - 1
207 ab( kd+1+i-j, j ) = cj*s( i )*ab( kd+1+i-j, j )
209 ab( kd+1, j ) = cj*cj*
REAL( AB( KD+1, J ) )
217 ab( 1, j ) = cj*cj*
REAL( AB( 1, J ) )
218 DO 30 i = j + 1, min( n, j+kd )
219 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.