123 SUBROUTINE sorghr( N, ILO, IHI, A, LDA, TAU, WORK, LWORK,
131 INTEGER IHI, ILO, INFO, LDA, LWORK, N
134 REAL A( LDA, * ), TAU( * ), WORK( * )
141 parameter( zero = 0.0e+0, one = 1.0e+0 )
145 INTEGER I, IINFO, J, LWKOPT, NB, NH
153 EXTERNAL ilaenv, sroundup_lwork
164 lquery = ( lwork.EQ.-1 )
167 ELSE IF( ilo.LT.1 .OR. ilo.GT.max( 1, n ) )
THEN
169 ELSE IF( ihi.LT.min( ilo, n ) .OR. ihi.GT.n )
THEN
171 ELSE IF( lda.LT.max( 1, n ) )
THEN
173 ELSE IF( lwork.LT.max( 1, nh ) .AND. .NOT.lquery )
THEN
178 nb = ilaenv( 1,
'SORGQR',
' ', nh, nh, nh, -1 )
179 lwkopt = max( 1, nh )*nb
180 work( 1 ) = sroundup_lwork(lwkopt)
184 CALL xerbla(
'SORGHR', -info )
186 ELSE IF( lquery )
THEN
201 DO 40 j = ihi, ilo + 1, -1
206 a( i, j ) = a( i, j-1 )
229 CALL sorgqr( nh, nh, nh, a( ilo+1, ilo+1 ), lda, tau( ilo ),
230 $ work, lwork, iinfo )
232 work( 1 ) = sroundup_lwork(lwkopt)
subroutine sorghr(n, ilo, ihi, a, lda, tau, work, lwork, info)
SORGHR
subroutine sorgqr(m, n, k, a, lda, tau, work, lwork, info)
SORGQR