146 SUBROUTINE zggbak( JOB, SIDE, N, ILO, IHI, LSCALE, RSCALE, M, V,
155 INTEGER IHI, ILO, INFO, LDV, M, N
158 DOUBLE PRECISION LSCALE( * ), RSCALE( * )
159 COMPLEX*16 V( LDV, * )
165 LOGICAL LEFTV, RIGHTV
182 rightv = lsame( side,
'R' )
183 leftv = lsame( side,
'L' )
186 IF( .NOT.lsame( job,
'N' ) .AND. .NOT.lsame( job,
'P' ) .AND.
187 $ .NOT.lsame( job,
'S' ) .AND. .NOT.lsame( job,
'B' ) )
THEN
189 ELSE IF( .NOT.rightv .AND. .NOT.leftv )
THEN
191 ELSE IF( n.LT.0 )
THEN
193 ELSE IF( ilo.LT.1 )
THEN
195 ELSE IF( n.EQ.0 .AND. ihi.EQ.0 .AND. ilo.NE.1 )
THEN
197 ELSE IF( n.GT.0 .AND. ( ihi.LT.ilo .OR. ihi.GT.max( 1, n ) ) )
200 ELSE IF( n.EQ.0 .AND. ilo.EQ.1 .AND. ihi.NE.0 )
THEN
202 ELSE IF( m.LT.0 )
THEN
204 ELSE IF( ldv.LT.max( 1, n ) )
THEN
208 CALL xerbla(
'ZGGBAK', -info )
218 IF( lsame( job,
'N' ) )
226 IF( lsame( job,
'S' ) .OR. lsame( job,
'B' ) )
THEN
232 CALL zdscal( m, rscale( i ), v( i, 1 ), ldv )
240 CALL zdscal( m, lscale( i ), v( i, 1 ), ldv )
248 IF( lsame( job,
'P' ) .OR. lsame( job,
'B' ) )
THEN
255 DO 40 i = ilo - 1, 1, -1
259 CALL zswap( m, v( i, 1 ), ldv, v( k, 1 ), ldv )
269 CALL zswap( m, v( i, 1 ), ldv, v( k, 1 ), ldv )
279 DO 80 i = ilo - 1, 1, -1
283 CALL zswap( m, v( i, 1 ), ldv, v( k, 1 ), ldv )
289 DO 100 i = ihi + 1, n
293 CALL zswap( m, v( i, 1 ), ldv, v( k, 1 ), ldv )
subroutine xerbla(srname, info)
subroutine zggbak(job, side, n, ilo, ihi, lscale, rscale, m, v, ldv, info)
ZGGBAK
subroutine zdscal(n, da, zx, incx)
ZDSCAL
subroutine zswap(n, zx, incx, zy, incy)
ZSWAP