146 SUBROUTINE cupmtr( SIDE, UPLO, TRANS, M, N, AP, TAU, C, LDC,
155 CHARACTER SIDE, TRANS, UPLO
156 INTEGER INFO, LDC, M, N
159 COMPLEX AP( * ), C( LDC, * ), TAU( * ), WORK( * )
165 LOGICAL FORWRD, LEFT, NOTRAN, UPPER
166 INTEGER I, I1, I2, I3, IC, II, JC, MI, NI, NQ
184 left = lsame( side,
'L' )
185 notran = lsame( trans,
'N' )
186 upper = lsame( uplo,
'U' )
195 IF( .NOT.left .AND. .NOT.lsame( side,
'R' ) )
THEN
197 ELSE IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
199 ELSE IF( .NOT.notran .AND. .NOT.lsame( trans,
'C' ) )
THEN
201 ELSE IF( m.LT.0 )
THEN
203 ELSE IF( n.LT.0 )
THEN
205 ELSE IF( ldc.LT.max( 1, m ) )
THEN
209 CALL xerbla(
'CUPMTR', -info )
215 IF( m.EQ.0 .OR. n.EQ.0 )
222 forwrd = ( left .AND. notran ) .OR.
223 $ ( .NOT.left .AND. .NOT.notran )
234 ii = nq*( nq+1 ) / 2 - 1
261 taui = conjg( tau( i ) )
263 CALL clarf1l( side, mi, ni, ap( ii-i+1 ), 1, taui, c,
276 forwrd = ( left .AND. .NOT.notran ) .OR.
277 $ ( .NOT.left .AND. notran )
288 ii = nq*( nq+1 ) / 2 - 1
319 taui = conjg( tau( i ) )
321 CALL clarf1f( side, mi, ni, ap( ii ), 1, taui, c( ic,
subroutine clarf1f(side, m, n, v, incv, tau, c, ldc, work)
CLARF1F applies an elementary reflector to a general rectangular
subroutine clarf1l(side, m, n, v, incv, tau, c, ldc, work)
CLARF1L applies an elementary reflector to a general rectangular
subroutine cupmtr(side, uplo, trans, m, n, ap, tau, c, ldc, work, info)
CUPMTR