133 SUBROUTINE zlaqhe( UPLO, N, A, LDA, S, SCOND, AMAX, EQUED )
140 CHARACTER EQUED, UPLO
142 DOUBLE PRECISION AMAX, SCOND
145 DOUBLE PRECISION S( * )
146 COMPLEX*16 A( LDA, * )
152 DOUBLE PRECISION ONE, THRESH
153 parameter( one = 1.0d+0, thresh = 0.1d+0 )
157 DOUBLE PRECISION CJ, LARGE, SMALL
161 DOUBLE PRECISION DLAMCH
162 EXTERNAL lsame, dlamch
178 small = dlamch(
'Safe minimum' ) / dlamch(
'Precision' )
181 IF( scond.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
THEN
190 IF( lsame( uplo,
'U' ) )
THEN
197 a( i, j ) = cj*s( i )*a( i, j )
199 a( j, j ) = cj*cj*dble( a( j, j ) )
207 a( j, j ) = cj*cj*dble( a( j, j ) )
209 a( i, j ) = cj*s( i )*a( i, j )
subroutine zlaqhe(uplo, n, a, lda, s, scond, amax, equed)
ZLAQHE scales a Hermitian matrix.