155 SUBROUTINE zunmr2( SIDE, TRANS, M, N, K, A, LDA, TAU, C, LDC,
163 CHARACTER SIDE, TRANS
164 INTEGER INFO, K, LDA, LDC, M, N
167 COMPLEX*16 A( LDA, * ), C( LDC, * ), TAU( * ), WORK( * )
174 parameter( one = ( 1.0d+0, 0.0d+0 ) )
178 INTEGER I, I1, I2, I3, MI, NI, NQ
189 INTRINSIC dconjg, max
196 left = lsame( side,
'L' )
197 notran = lsame( trans,
'N' )
206 IF( .NOT.left .AND. .NOT.lsame( side,
'R' ) )
THEN
208 ELSE IF( .NOT.notran .AND. .NOT.lsame( trans,
'C' ) )
THEN
210 ELSE IF( m.LT.0 )
THEN
212 ELSE IF( n.LT.0 )
THEN
214 ELSE IF( k.LT.0 .OR. k.GT.nq )
THEN
216 ELSE IF( lda.LT.max( 1, k ) )
THEN
218 ELSE IF( ldc.LT.max( 1, m ) )
THEN
222 CALL xerbla(
'ZUNMR2', -info )
228 IF( m.EQ.0 .OR. n.EQ.0 .OR. k.EQ.0 )
231 IF( ( left .AND. .NOT.notran .OR. .NOT.left .AND. notran ) )
THEN
263 taui = dconjg( tau( i ) )
267 CALL zlacgv( nq-k+i-1, a( i, 1 ), lda )
268 CALL zlarf1l( side, mi, ni, a( i, 1 ), lda, taui, c, ldc,
270 CALL zlacgv( nq-k+i-1, a( i, 1 ), lda )
subroutine zunmr2(side, trans, m, n, k, a, lda, tau, c, ldc, work, info)
ZUNMR2 multiplies a general matrix by the unitary matrix from a RQ factorization determined by cgerqf...
subroutine zlarf1l(side, m, n, v, incv, tau, c, ldc, work)
ZLARF1L applies an elementary reflector to a general rectangular