126 SUBROUTINE spbequ( UPLO, N, KD, AB, LDAB, S, SCOND, AMAX,
135 INTEGER INFO, KD, LDAB, N
139 REAL AB( LDAB, * ), S( * )
146 parameter( zero = 0.0e+0, one = 1.0e+0 )
161 INTRINSIC max, min, sqrt
168 upper = lsame( uplo,
'U' )
169 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
171 ELSE IF( n.LT.0 )
THEN
173 ELSE IF( kd.LT.0 )
THEN
175 ELSE IF( ldab.LT.kd+1 )
THEN
179 CALL xerbla(
'SPBEQU', -info )
207 smin = min( smin, s( i ) )
208 amax = max( amax, s( i ) )
211 IF( smin.LE.zero )
THEN
216 IF( s( i ).LE.zero )
THEN
227 s( i ) = one / sqrt( s( i ) )
232 scond = sqrt( smin ) / sqrt( amax )
subroutine spbequ(uplo, n, kd, ab, ldab, s, scond, amax, info)
SPBEQU