113 SUBROUTINE cung2r( 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(
'CUNG2R', -info )
181 CALL clarf(
'Left', m-i+1, n-i, a( i, i ), 1, tau( i ),
182 $ a( i, i+1 ), lda, work )
185 $
CALL cscal( m-i, -tau( i ), a( i+1, i ), 1 )
186 a( i, i ) = one - tau( i )
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 cung2r(m, n, k, a, lda, tau, work, info)
CUNG2R