114 SUBROUTINE zungl2( M, N, K, A, LDA, TAU, WORK, INFO )
122 INTEGER INFO, K, LDA, M, N
125 COMPLEX*16 A( lda, * ), TAU( * ), WORK( * )
132 parameter ( one = ( 1.0d+0, 0.0d+0 ),
133 $ zero = ( 0.0d+0, 0.0d+0 ) )
142 INTRINSIC dconjg, max
151 ELSE IF( n.LT.m )
THEN
153 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
155 ELSE IF( lda.LT.max( 1, m ) )
THEN
159 CALL xerbla(
'ZUNGL2', -info )
176 IF( j.GT.k .AND. j.LE.m )
186 CALL zlacgv( n-i, a( i, i+1 ), lda )
189 CALL zlarf(
'Right', m-i, n-i+1, a( i, i ), lda,
190 $ dconjg( tau( i ) ), a( i+1, i ), lda, work )
192 CALL zscal( n-i, -tau( i ), a( i, i+1 ), lda )
193 CALL zlacgv( n-i, a( i, i+1 ), lda )
195 a( i, i ) = one - dconjg( tau( i ) )
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...
subroutine xerbla(SRNAME, INFO)
XERBLA
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 zlacgv(N, X, INCX)
ZLACGV conjugates a complex vector.