120 SUBROUTINE sgerq2( M, N, A, LDA, TAU, WORK, INFO )
127 INTEGER INFO, LDA, M, N
130 REAL A( LDA, * ), TAU( * ), WORK( * )
151 ELSE IF( n.LT.0 )
THEN
153 ELSE IF( lda.LT.max( 1, m ) )
THEN
157 CALL xerbla(
'SGERQ2', -info )
168 CALL slarfg( n-k+i, a( m-k+i, n-k+i ), a( m-k+i, 1 ), lda,
173 CALL slarf1l(
'Right', m-k+i-1, n-k+i, a( m-k+i, 1 ), lda,
174 $ tau( i ), a, lda, work )
subroutine xerbla(srname, info)
subroutine sgerq2(m, n, a, lda, tau, work, info)
SGERQ2 computes the RQ 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 slarf1l(side, m, n, v, incv, tau, c, ldc, work)
SLARF1L applies an elementary reflector to a general rectangular