113 SUBROUTINE dorgr2( M, N, K, A, LDA, TAU, WORK, INFO )
120 INTEGER INFO, K, LDA, M, N
123 DOUBLE PRECISION A( LDA, * ), TAU( * ), WORK( * )
129 DOUBLE PRECISION ONE, ZERO
130 parameter( one = 1.0d+0, zero = 0.0d+0 )
148 ELSE IF( n.LT.m )
THEN
150 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
152 ELSE IF( lda.LT.max( 1, m ) )
THEN
156 CALL xerbla(
'DORGR2', -info )
173 IF( j.GT.n-m .AND. j.LE.n-k )
174 $ a( m-n+j, j ) = one
183 a( ii, n-m+ii ) = one
184 CALL dlarf(
'Right', ii-1, n-m+ii, a( ii, 1 ), lda, tau( i ),
186 CALL dscal( n-m+ii-1, -tau( i ), a( ii, 1 ), lda )
187 a( ii, n-m+ii ) = one - tau( i )
191 DO 30 l = n - m + ii + 1, n
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 dorgr2(m, n, k, a, lda, tau, work, info)
DORGR2 generates all or part of the orthogonal matrix Q from an RQ factorization determined by sgerqf...