125 SUBROUTINE zlaqsp( 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
167 small = dlamch(
'Safe minimum' ) / dlamch(
'Precision' )
170 IF( scond.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
THEN
179 IF( lsame( uplo,
'U' ) )
THEN
187 ap( jc+i-1 ) = cj*s( i )*ap( jc+i-1 )
199 ap( jc+i-j ) = cj*s( i )*ap( jc+i-j )
subroutine zlaqsp(uplo, n, ap, s, scond, amax, equed)
ZLAQSP scales a symmetric/Hermitian matrix in packed storage, using scaling factors computed by sppeq...