113 SUBROUTINE cung2l( M, N, K, A, LDA, TAU, WORK, INFO )
120 INTEGER INFO, K, LDA, M, N
123 COMPLEX A( LDA, * ), TAU( * ), WORK( * )
130 parameter( one = ( 1.0e+0, 0.0e+0 ),
131 $ zero = ( 0.0e+0, 0.0e+0 ) )
149 ELSE IF( n.LT.0 .OR. n.GT.m )
THEN
151 ELSE IF( k.LT.0 .OR. k.GT.n )
THEN
153 ELSE IF( lda.LT.max( 1, m ) )
THEN
157 CALL xerbla(
'CUNG2L', -info )
180 a( m-n+ii, ii ) = one
181 CALL clarf(
'Left', m-n+ii, ii-1, a( 1, ii ), 1, tau( i ), a,
183 CALL cscal( m-n+ii-1, -tau( i ), a( 1, ii ), 1 )
184 a( m-n+ii, ii ) = one - tau( i )
188 DO 30 l = m - n + ii + 1, m
subroutine xerbla(srname, info)
subroutine clarf(side, m, n, v, incv, tau, c, ldc, work)
CLARF applies an elementary reflector to a general rectangular matrix.
subroutine cscal(n, ca, cx, incx)
CSCAL
subroutine cung2l(m, n, k, a, lda, tau, work, info)
CUNG2L generates all or part of the unitary matrix Q from a QL factorization determined by cgeqlf (un...