113 SUBROUTINE sorg2r( 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.0 .OR. n.GT.m )
THEN
150 ELSE IF( k.LT.0 .OR. k.GT.n )
THEN
152 ELSE IF( lda.LT.max( 1, m ) )
THEN
156 CALL xerbla(
'SORG2R', -info )
180 CALL slarf(
'Left', m-i+1, n-i, a( i, i ), 1, tau( i ),
181 $ a( i, i+1 ), lda, work )
184 $
CALL sscal( m-i, -tau( i ), a( i+1, i ), 1 )
185 a( i, i ) = one - tau( i )
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 sorg2r(m, n, k, a, lda, tau, work, info)
SORG2R generates all or part of the orthogonal matrix Q from a QR factorization determined by sgeqrf ...