125 SUBROUTINE zunghr( N, ILO, IHI, A, LDA, TAU, WORK, LWORK, INFO )
132 INTEGER IHI, ILO, INFO, LDA, LWORK, N
135 COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
142 parameter( zero = ( 0.0d+0, 0.0d+0 ),
143 $ one = ( 1.0d+0, 0.0d+0 ) )
147 INTEGER I, IINFO, J, LWKOPT, NB, NH
165 lquery = ( lwork.EQ.-1 )
168 ELSE IF( ilo.LT.1 .OR. ilo.GT.max( 1, n ) )
THEN
170 ELSE IF( ihi.LT.min( ilo, n ) .OR. ihi.GT.n )
THEN
172 ELSE IF( lda.LT.max( 1, n ) )
THEN
174 ELSE IF( lwork.LT.max( 1, nh ) .AND. .NOT.lquery )
THEN
179 nb = ilaenv( 1,
'ZUNGQR',
' ', nh, nh, nh, -1 )
180 lwkopt = max( 1, nh )*nb
185 CALL xerbla(
'ZUNGHR', -info )
187 ELSE IF( lquery )
THEN
202 DO 40 j = ihi, ilo + 1, -1
207 a( i, j ) = a( i, j-1 )
230 CALL zungqr( nh, nh, nh, a( ilo+1, ilo+1 ), lda, tau( ilo ),
231 $ work, lwork, iinfo )
subroutine xerbla(srname, info)
subroutine zunghr(n, ilo, ihi, a, lda, tau, work, lwork, info)
ZUNGHR
subroutine zungqr(m, n, k, a, lda, tau, work, lwork, info)
ZUNGQR