113 SUBROUTINE zung2r( M, N, K, A, LDA, TAU, WORK, INFO )
120 INTEGER INFO, K, LDA, M, N
123 COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
130 parameter( one = ( 1.0d+0, 0.0d+0 ),
131 $ zero = ( 0.0d+0, 0.0d+0 ) )
149 ELSE IF( n.LT.0 .OR. n.GT.m )
THEN
151 ELSE IF( k.LT.0 .OR. k.GT.n )
THEN
153 ELSE IF( lda.LT.max( 1, m ) )
THEN
157 CALL xerbla(
'ZUNG2R', -info )
181 CALL zlarf(
'Left', m-i+1, n-i, a( i, i ), 1, tau( i ),
182 $ a( i, i+1 ), lda, work )
185 $
CALL zscal( m-i, -tau( i ), a( i+1, i ), 1 )
186 a( i, i ) = one - tau( i )
subroutine xerbla(srname, info)
subroutine zlarf(side, m, n, v, incv, tau, c, ldc, work)
ZLARF applies an elementary reflector to a general rectangular matrix.
subroutine zscal(n, za, zx, incx)
ZSCAL
subroutine zung2r(m, n, k, a, lda, tau, work, info)
ZUNG2R