125 SUBROUTINE zlaqhp( UPLO, N, AP, S, SCOND, AMAX, EQUED )
132 CHARACTER EQUED, UPLO
134 DOUBLE PRECISION AMAX, SCOND
137 DOUBLE PRECISION S( * )
144 DOUBLE PRECISION ONE, THRESH
145 parameter( one = 1.0d+0, thresh = 0.1d+0 )
149 DOUBLE PRECISION CJ, LARGE, SMALL
153 DOUBLE PRECISION DLAMCH
154 EXTERNAL lsame, dlamch
170 small = dlamch(
'Safe minimum' ) / dlamch(
'Precision' )
173 IF( scond.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
THEN
182 IF( lsame( uplo,
'U' ) )
THEN
190 ap( jc+i-1 ) = cj*s( i )*ap( jc+i-1 )
192 ap( jc+j-1 ) = cj*cj*dble( ap( jc+j-1 ) )
202 ap( jc ) = cj*cj*dble( ap( jc ) )
204 ap( jc+i-j ) = cj*s( i )*ap( jc+i-j )
subroutine zlaqhp(uplo, n, ap, s, scond, amax, equed)
ZLAQHP scales a Hermitian matrix stored in packed form.