135 SUBROUTINE zlaqhe( UPLO, N, A, LDA, S, SCOND, AMAX, EQUED )
143 CHARACTER EQUED, UPLO
145 DOUBLE PRECISION AMAX, SCOND
148 DOUBLE PRECISION S( * )
149 COMPLEX*16 A( lda, * )
155 DOUBLE PRECISION ONE, THRESH
156 parameter ( one = 1.0d+0, thresh = 0.1d+0 )
160 DOUBLE PRECISION CJ, LARGE, SMALL
164 DOUBLE PRECISION DLAMCH
165 EXTERNAL lsame, dlamch
181 small = dlamch(
'Safe minimum' ) / dlamch(
'Precision' )
184 IF( scond.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
THEN
193 IF( lsame( uplo,
'U' ) )
THEN
200 a( i, j ) = cj*s( i )*a( i, j )
202 a( j, j ) = cj*cj*dble( a( j, j ) )
210 a( j, j ) = cj*cj*dble( a( j, j ) )
212 a( i, j ) = cj*s( i )*a( i, j )
subroutine zlaqhe(UPLO, N, A, LDA, S, SCOND, AMAX, EQUED)
ZLAQHE scales a Hermitian matrix.