178 SUBROUTINE sormr3( SIDE, TRANS, M, N, K, L, A, LDA, TAU, C, LDC,
187 CHARACTER side, trans
188 INTEGER info, k, l, lda, ldc, m, n
191 REAL a( lda, * ), c( ldc, * ), tau( * ), work( * )
198 INTEGER i, i1, i2, i3, ic, ja, jc, mi, ni, nq
215 left =
lsame( side,
'L' )
216 notran =
lsame( trans,
'N' )
225 IF( .NOT.left .AND. .NOT.
lsame( side,
'R' ) )
THEN
227 ELSE IF( .NOT.notran .AND. .NOT.
lsame( trans,
'T' ) )
THEN
229 ELSE IF( m.LT.0 )
THEN
231 ELSE IF( n.LT.0 )
THEN
233 ELSE IF( k.LT.0 .OR. k.GT.nq )
THEN
235 ELSE IF( l.LT.0 .OR. ( left .AND. ( l.GT.m ) ) .OR.
236 $ ( .NOT.left .AND. ( l.GT.n ) ) )
THEN
238 ELSE IF( lda.LT.max( 1, k ) )
THEN
240 ELSE IF( ldc.LT.max( 1, m ) )
THEN
244 CALL
xerbla(
'SORMR3', -info )
250 IF( m.EQ.0 .OR. n.EQ.0 .OR. k.EQ.0 )
253 IF( ( left .AND. .NOT.notran .OR. .NOT.left .AND. notran ) )
THEN
290 CALL
slarz( side, mi, ni, l, a( i, ja ), lda, tau( i ),
291 $ c( ic, jc ), ldc, work )