125 SUBROUTINE dorghr( N, ILO, IHI, A, LDA, TAU, WORK, LWORK, INFO )
132 INTEGER IHI, ILO, INFO, LDA, LWORK, N
135 DOUBLE PRECISION A( LDA, * ), TAU( * ), WORK( * )
141 DOUBLE PRECISION ZERO, ONE
142 parameter( zero = 0.0d+0, one = 1.0d+0 )
146 INTEGER I, IINFO, J, LWKOPT, NB, NH
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,
'DORGQR',
' ', nh, nh, nh, -1 )
179 lwkopt = max( 1, nh )*nb
184 CALL xerbla(
'DORGHR', -info )
186 ELSE IF( lquery )
THEN
201 DO 40 j = ihi, ilo + 1, -1
206 a( i, j ) = a( i, j-1 )
229 CALL dorgqr( nh, nh, nh, a( ilo+1, ilo+1 ), lda, tau( ilo ),
230 $ work, lwork, iinfo )
subroutine xerbla(srname, info)
subroutine dorghr(n, ilo, ihi, a, lda, tau, work, lwork, info)
DORGHR
subroutine dorgqr(m, n, k, a, lda, tau, work, lwork, info)
DORGQR