157 SUBROUTINE cunmr2( SIDE, TRANS, M, N, K, A, LDA, TAU, C, LDC,
165 CHARACTER SIDE, TRANS
166 INTEGER INFO, K, LDA, LDC, M, N
169 COMPLEX A( LDA, * ), C( LDC, * ), TAU( * ), WORK( * )
176 parameter( one = ( 1.0e+0, 0.0e+0 ) )
180 INTEGER I, I1, I2, I3, MI, NI, NQ
198 left = lsame( side,
'L' )
199 notran = lsame( trans,
'N' )
208 IF( .NOT.left .AND. .NOT.lsame( side,
'R' ) )
THEN
210 ELSE IF( .NOT.notran .AND. .NOT.lsame( trans,
'C' ) )
THEN
212 ELSE IF( m.LT.0 )
THEN
214 ELSE IF( n.LT.0 )
THEN
216 ELSE IF( k.LT.0 .OR. k.GT.nq )
THEN
218 ELSE IF( lda.LT.max( 1, k ) )
THEN
220 ELSE IF( ldc.LT.max( 1, m ) )
THEN
224 CALL xerbla(
'CUNMR2', -info )
230 IF( m.EQ.0 .OR. n.EQ.0 .OR. k.EQ.0 )
233 IF( ( left .AND. .NOT.notran .OR. .NOT.left .AND. notran ) )
THEN
265 taui = conjg( tau( i ) )
269 CALL clacgv( nq-k+i-1, a( i, 1 ), lda )
272 CALL clarf( side, mi, ni, a( i, 1 ), lda, taui, c, ldc, work )
274 CALL clacgv( nq-k+i-1, a( i, 1 ), lda )
subroutine xerbla(srname, info)
subroutine clacgv(n, x, incx)
CLACGV conjugates a complex vector.
subroutine clarf(side, m, n, v, incv, tau, c, ldc, work)
CLARF applies an elementary reflector to a general rectangular matrix.
subroutine cunmr2(side, trans, m, n, k, a, lda, tau, c, ldc, work, info)
CUNMR2 multiplies a general matrix by the unitary matrix from a RQ factorization determined by cgerqf...