112 SUBROUTINE dorgl2( M, N, K, A, LDA, TAU, WORK, INFO )
119 INTEGER INFO, K, LDA, M, N
122 DOUBLE PRECISION A( LDA, * ), TAU( * ), WORK( * )
128 DOUBLE PRECISION ONE, ZERO
129 parameter( one = 1.0d+0, zero = 0.0d+0 )
147 ELSE IF( n.LT.m )
THEN
149 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
151 ELSE IF( lda.LT.max( 1, m ) )
THEN
155 CALL xerbla(
'DORGL2', -info )
172 IF( j.GT.k .AND. j.LE.m )
184 CALL dlarf(
'Right', m-i, n-i+1, a( i, i ), lda,
185 $ tau( i ), a( i+1, i ), lda, work )
187 CALL dscal( n-i, -tau( i ), a( i, i+1 ), lda )
189 a( i, i ) = one - tau( i )
subroutine xerbla(srname, info)
subroutine dlarf(side, m, n, v, incv, tau, c, ldc, work)
DLARF applies an elementary reflector to a general rectangular matrix.
subroutine dscal(n, da, dx, incx)
DSCAL
subroutine dorgl2(m, n, k, a, lda, tau, work, info)
DORGL2