131 SUBROUTINE cpbequ( UPLO, N, KD, AB, LDAB, S, SCOND, AMAX, INFO )
140 INTEGER info, kd, ldab, n
145 COMPLEX ab( ldab, * )
152 parameter( zero = 0.0e+0, one = 1.0e+0 )
167 INTRINSIC max, min,
REAL, sqrt
174 upper =
lsame( uplo,
'U' )
175 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
177 ELSE IF( n.LT.0 )
THEN
179 ELSE IF( kd.LT.0 )
THEN
181 ELSE IF( ldab.LT.kd+1 )
THEN
185 CALL
xerbla(
'CPBEQU', -info )
205 s( 1 ) =
REAL( AB( J, 1 ) )
212 s( i ) =
REAL( AB( J, I ) )
213 smin = min( smin, s( i ) )
214 amax = max( amax, s( i ) )
217 IF( smin.LE.zero )
THEN
222 IF( s( i ).LE.zero )
THEN
233 s( i ) = one / sqrt( s( i ) )
238 scond = sqrt( smin ) / sqrt( amax )