110 SUBROUTINE dorgl2( M, N, K, A, LDA, TAU, WORK, INFO )
117 INTEGER INFO, K, LDA, M, N
120 DOUBLE PRECISION A( LDA, * ), TAU( * ), WORK( * )
126 DOUBLE PRECISION ONE, ZERO
127 parameter( one = 1.0d+0, zero = 0.0d+0 )
145 ELSE IF( n.LT.m )
THEN
147 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
149 ELSE IF( lda.LT.max( 1, m ) )
THEN
153 CALL xerbla(
'DORGL2', -info )
170 IF( j.GT.k .AND. j.LE.m )
181 CALL dlarf1f(
'Right', m-i, n-i+1, a( i, i ), lda,
182 $ tau( i ), a( i+1, i ), lda, work )
184 CALL dscal( n-i, -tau( i ), a( i, i+1 ), lda )
186 a( i, i ) = one - tau( i )
subroutine dlarf1f(side, m, n, v, incv, tau, c, ldc, work)
DLARF1F applies an elementary reflector to a general rectangular
subroutine dorgl2(m, n, k, a, lda, tau, work, info)
DORGL2