120 SUBROUTINE dgerq2( M, N, A, LDA, TAU, WORK, INFO )
127 INTEGER INFO, LDA, M, N
130 DOUBLE PRECISION A( LDA, * ), TAU( * ), WORK( * )
137 parameter( one = 1.0d+0 )
155 ELSE IF( n.LT.0 )
THEN
157 ELSE IF( lda.LT.max( 1, m ) )
THEN
161 CALL xerbla(
'DGERQ2', -info )
172 CALL dlarfg( n-k+i, a( m-k+i, n-k+i ), a( m-k+i, 1 ), lda,
177 CALL dlarf1l(
'Right', m-k+i-1, n-k+i, a( m-k+i, 1 ), lda,
178 $ tau( i ), a, lda, work )
subroutine dgerq2(m, n, a, lda, tau, work, info)
DGERQ2 computes the RQ factorization of a general rectangular matrix using an unblocked algorithm.
subroutine dlarf1l(side, m, n, v, incv, tau, c, ldc, work)
DLARF1L applies an elementary reflector to a general rectangular
subroutine dlarfg(n, alpha, x, incx, tau)
DLARFG generates an elementary reflector (Householder matrix).