126 SUBROUTINE sgelq2( M, N, A, LDA, TAU, WORK, INFO )
133 INTEGER INFO, LDA, M, N
136 REAL A( LDA, * ), TAU( * ), WORK( * )
157 ELSE IF( n.LT.0 )
THEN
159 ELSE IF( lda.LT.max( 1, m ) )
THEN
163 CALL xerbla(
'SGELQ2', -info )
173 CALL slarfg( n-i+1, a( i, i ), a( i, min( i+1, n ) ), lda,
179 CALL slarf1f(
'Right', m-i, n-i+1, a( i, i ), lda,
180 $ tau( i ), a( i+1, i ), lda, work )
subroutine sgelq2(m, n, a, lda, tau, work, info)
SGELQ2 computes the LQ factorization of a general rectangular matrix using an unblocked algorithm.
subroutine slarfg(n, alpha, x, incx, tau)
SLARFG generates an elementary reflector (Householder matrix).
subroutine slarf1f(side, m, n, v, incv, tau, c, ldc, work)
SLARF1F applies an elementary reflector to a general rectangular