113 SUBROUTINE sorgr2( M, N, K, A, LDA, TAU, WORK, INFO )
120 INTEGER INFO, K, LDA, M, N
123 REAL A( LDA, * ), TAU( * ), WORK( * )
130 parameter( one = 1.0e+0, zero = 0.0e+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(
'SORGR2', -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 slarf(
'Right', ii-1, n-m+ii, a( ii, 1 ), lda, tau( i ),
186 CALL sscal( 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 slarf(side, m, n, v, incv, tau, c, ldc, work)
SLARF applies an elementary reflector to a general rectangular matrix.
subroutine sscal(n, sa, sx, incx)
SSCAL
subroutine sorgr2(m, n, k, a, lda, tau, work, info)
SORGR2 generates all or part of the orthogonal matrix Q from an RQ factorization determined by sgerqf...