144 SUBROUTINE zggbak( JOB, SIDE, N, ILO, IHI, LSCALE, RSCALE, M,
154 INTEGER IHI, ILO, INFO, LDV, M, N
157 DOUBLE PRECISION LSCALE( * ), RSCALE( * )
158 COMPLEX*16 V( LDV, * )
164 LOGICAL LEFTV, RIGHTV
181 rightv = lsame( side,
'R' )
182 leftv = lsame( side,
'L' )
185 IF( .NOT.lsame( job,
'N' ) .AND.
186 $ .NOT.lsame( job,
'P' ) .AND.
187 $ .NOT.lsame( job,
'S' ) .AND.
188 $ .NOT.lsame( job,
'B' ) )
THEN
190 ELSE IF( .NOT.rightv .AND. .NOT.leftv )
THEN
192 ELSE IF( n.LT.0 )
THEN
194 ELSE IF( ilo.LT.1 )
THEN
196 ELSE IF( n.EQ.0 .AND. ihi.EQ.0 .AND. ilo.NE.1 )
THEN
198 ELSE IF( n.GT.0 .AND. ( ihi.LT.ilo .OR. ihi.GT.max( 1, n ) ) )
201 ELSE IF( n.EQ.0 .AND. ilo.EQ.1 .AND. ihi.NE.0 )
THEN
203 ELSE IF( m.LT.0 )
THEN
205 ELSE IF( ldv.LT.max( 1, n ) )
THEN
209 CALL xerbla(
'ZGGBAK', -info )
219 IF( lsame( job,
'N' ) )
227 IF( lsame( job,
'S' ) .OR. lsame( job,
'B' ) )
THEN
233 CALL zdscal( m, rscale( i ), v( i, 1 ), ldv )
241 CALL zdscal( m, lscale( i ), v( i, 1 ), ldv )
249 IF( lsame( job,
'P' ) .OR. lsame( job,
'B' ) )
THEN
256 DO 40 i = ilo - 1, 1, -1
260 CALL zswap( m, v( i, 1 ), ldv, v( k, 1 ), ldv )
270 CALL zswap( m, v( i, 1 ), ldv, v( k, 1 ), ldv )
280 DO 80 i = ilo - 1, 1, -1
284 CALL zswap( m, v( i, 1 ), ldv, v( k, 1 ), ldv )
290 DO 100 i = ihi + 1, n
294 CALL zswap( m, v( i, 1 ), ldv, v( k, 1 ), ldv )
subroutine zggbak(job, side, n, ilo, ihi, lscale, rscale, m, v, ldv, info)
ZGGBAK