113 SUBROUTINE sstev( JOBZ, N, D, E, Z, LDZ, WORK, INFO )
124 REAL D( * ), E( * ), WORK( * ), Z( LDZ, * )
131 parameter( zero = 0.0e0, one = 1.0e0 )
136 REAL BIGNUM, EPS, RMAX, RMIN, SAFMIN, SIGMA, SMLNUM,
142 EXTERNAL lsame, slamch, slanst
154 wantz = lsame( jobz,
'V' )
157 IF( .NOT.( wantz .OR. lsame( jobz,
'N' ) ) )
THEN
159 ELSE IF( n.LT.0 )
THEN
161 ELSE IF( ldz.LT.1 .OR. ( wantz .AND. ldz.LT.n ) )
THEN
166 CALL xerbla(
'SSTEV ', -info )
183 safmin = slamch(
'Safe minimum' )
184 eps = slamch(
'Precision' )
185 smlnum = safmin / eps
186 bignum = one / smlnum
187 rmin = sqrt( smlnum )
188 rmax = sqrt( bignum )
193 tnrm = slanst(
'M', n, d, e )
194 IF( tnrm.GT.zero .AND. tnrm.LT.rmin )
THEN
197 ELSE IF( tnrm.GT.rmax )
THEN
201 IF( iscale.EQ.1 )
THEN
202 CALL sscal( n, sigma, d, 1 )
203 CALL sscal( n-1, sigma, e( 1 ), 1 )
209 IF( .NOT.wantz )
THEN
210 CALL ssterf( n, d, e, info )
212 CALL ssteqr(
'I', n, d, e, z, ldz, work, info )
217 IF( iscale.EQ.1 )
THEN
223 CALL sscal( imax, one / sigma, d, 1 )
subroutine ssteqr(compz, n, d, e, z, ldz, work, info)
SSTEQR
subroutine sstev(jobz, n, d, e, z, ldz, work, info)
SSTEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices