124 SUBROUTINE slaqsp( UPLO, N, AP, S, SCOND, AMAX, EQUED )
131 CHARACTER EQUED, UPLO
143 parameter( one = 1.0e+0, thresh = 0.1e+0 )
147 REAL CJ, LARGE, SMALL
152 EXTERNAL lsame, slamch
165 small = slamch(
'Safe minimum' ) / slamch(
'Precision' )
168 IF( scond.GE.thresh .AND. amax.GE.small .AND. amax.LE.large )
THEN
177 IF( lsame( uplo,
'U' ) )
THEN
185 ap( jc+i-1 ) = cj*s( i )*ap( jc+i-1 )
197 ap( jc+i-j ) = cj*s( i )*ap( jc+i-j )
subroutine slaqsp(uplo, n, ap, s, scond, amax, equed)
SLAQSP scales a symmetric/Hermitian matrix in packed storage, using scaling factors computed by sppeq...