122 SUBROUTINE zgelq2( M, N, A, LDA, TAU, WORK, INFO )
130 INTEGER info, lda, m, n
133 COMPLEX*16 a( lda, * ), tau( * ), work( * )
140 parameter( one = ( 1.0d+0, 0.0d+0 ) )
159 ELSE IF( n.LT.0 )
THEN
161 ELSE IF( lda.LT.max( 1, m ) )
THEN
165 CALL
xerbla(
'ZGELQ2', -info )
175 CALL
zlacgv( n-i+1, a( i, i ), lda )
177 CALL
zlarfg( n-i+1, alpha, a( i, min( i+1, n ) ), lda,
184 CALL
zlarf(
'Right', m-i, n-i+1, a( i, i ), lda, tau( i ),
185 $ a( i+1, i ), lda, work )
188 CALL
zlacgv( n-i+1, a( i, i ), lda )