122 SUBROUTINE zgeql2( M, N, A, LDA, TAU, WORK, INFO )
129 INTEGER INFO, LDA, M, N
132 COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
139 parameter( one = ( 1.0d+0, 0.0d+0 ) )
149 INTRINSIC dconjg, max, min
158 ELSE IF( n.LT.0 )
THEN
160 ELSE IF( lda.LT.max( 1, m ) )
THEN
164 CALL xerbla(
'ZGEQL2', -info )
175 alpha = a( m-k+i, n-k+i )
176 CALL zlarfg( m-k+i, alpha, a( 1, n-k+i ), 1, tau( i ) )
180 a( m-k+i, n-k+i ) = one
181 CALL zlarf(
'Left', m-k+i, n-k+i-1, a( 1, n-k+i ), 1,
182 $ dconjg( tau( i ) ), a, lda, work )
183 a( m-k+i, n-k+i ) = alpha
subroutine xerbla(srname, info)
subroutine zgeql2(m, n, a, lda, tau, work, info)
ZGEQL2 computes the QL factorization of a general rectangular matrix using an unblocked algorithm.
subroutine zlarf(side, m, n, v, incv, tau, c, ldc, work)
ZLARF applies an elementary reflector to a general rectangular matrix.
subroutine zlarfg(n, alpha, x, incx, tau)
ZLARFG generates an elementary reflector (Householder matrix).