114 SUBROUTINE dorgl2( M, N, K, A, LDA, TAU, WORK, INFO )
122 INTEGER info, k, lda, m, n
125 DOUBLE PRECISION a( lda, * ), tau( * ), work( * )
131 DOUBLE PRECISION one, zero
132 parameter( one = 1.0d+0, zero = 0.0d+0 )
150 ELSE IF( n.LT.m )
THEN
152 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
154 ELSE IF( lda.LT.max( 1, m ) )
THEN
158 CALL
xerbla(
'DORGL2', -info )
175 IF( j.GT.k .AND. j.LE.m )
187 CALL
dlarf(
'Right', m-i, n-i+1, a( i, i ), lda,
188 $ tau( i ), a( i+1, i ), lda, work )
190 CALL
dscal( n-i, -tau( i ), a( i, i+1 ), lda )
192 a( i, i ) = one - tau( i )