112 SUBROUTINE zungl2( M, N, K, A, LDA, TAU, WORK, INFO )
119 INTEGER INFO, K, LDA, M, N
122 COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
129 parameter( one = ( 1.0d+0, 0.0d+0 ),
130 $ zero = ( 0.0d+0, 0.0d+0 ) )
139 INTRINSIC dconjg, max
148 ELSE IF( n.LT.m )
THEN
150 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
152 ELSE IF( lda.LT.max( 1, m ) )
THEN
156 CALL xerbla(
'ZUNGL2', -info )
173 IF( j.GT.k .AND. j.LE.m )
183 CALL zlacgv( n-i, a( i, i+1 ), lda )
186 CALL zlarf(
'Right', m-i, n-i+1, a( i, i ), lda,
187 $ dconjg( tau( i ) ), a( i+1, i ), lda, work )
189 CALL zscal( n-i, -tau( i ), a( i, i+1 ), lda )
190 CALL zlacgv( n-i, a( i, i+1 ), lda )
192 a( i, i ) = one - dconjg( tau( i ) )
subroutine xerbla(srname, info)
subroutine zlacgv(n, x, incx)
ZLACGV conjugates a complex vector.
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 zungl2(m, n, k, a, lda, tau, work, info)
ZUNGL2 generates all or part of the unitary matrix Q from an LQ factorization determined by cgelqf (u...