112 SUBROUTINE sorgl2( M, N, K, A, LDA, TAU, WORK, INFO )
119 INTEGER INFO, K, LDA, M, N
122 REAL A( LDA, * ), TAU( * ), WORK( * )
129 parameter( one = 1.0e+0, zero = 0.0e+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(
'SORGL2', -info )
172 IF( j.GT.k .AND. j.LE.m )
184 CALL slarf(
'Right', m-i, n-i+1, a( i, i ), lda,
185 $ tau( i ), a( i+1, i ), lda, work )
187 CALL sscal( n-i, -tau( i ), a( i, i+1 ), lda )
189 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 sorgl2(m, n, k, a, lda, tau, work, info)
SORGL2