126 SUBROUTINE zgelq2( M, N, A, LDA, TAU, WORK, INFO )
133 INTEGER INFO, LDA, M, N
136 COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
143 parameter( one = ( 1.0d+0, 0.0d+0 ) )
161 ELSE IF( n.LT.0 )
THEN
163 ELSE IF( lda.LT.max( 1, m ) )
THEN
167 CALL xerbla(
'ZGELQ2', -info )
177 CALL zlacgv( n-i+1, a( i, i ), lda )
178 CALL zlarfg( n-i+1, a( i, i ), a( i, min( i+1, n ) ), lda,
184 CALL zlarf1f(
'Right', m-i, n-i+1, a( i, i ), lda,
186 $ a( i+1, i ), lda, work )
188 CALL zlacgv( n-i+1, a( i, i ), lda )
subroutine zgelq2(m, n, a, lda, tau, work, info)
ZGELQ2 computes the LQ factorization of a general rectangular matrix using an unblocked algorithm.
subroutine zlarf1f(side, m, n, v, incv, tau, c, ldc, work)
ZLARF1F applies an elementary reflector to a general rectangular
subroutine zlarfg(n, alpha, x, incx, tau)
ZLARFG generates an elementary reflector (Householder matrix).