123 SUBROUTINE zunghr( N, ILO, IHI, A, LDA, TAU, WORK, LWORK,
131 INTEGER IHI, ILO, INFO, LDA, LWORK, N
134 COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * )
141 parameter( zero = ( 0.0d+0, 0.0d+0 ),
142 $ one = ( 1.0d+0, 0.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,
'ZUNGQR',
' ', nh, nh, nh, -1 )
179 lwkopt = max( 1, nh )*nb
184 CALL xerbla(
'ZUNGHR', -info )
186 ELSE IF( lquery )
THEN
201 DO 40 j = ihi, ilo + 1, -1
206 a( i, j ) = a( i, j-1 )
229 CALL zungqr( nh, nh, nh, a( ilo+1, ilo+1 ), lda, tau( ilo ),
230 $ work, lwork, iinfo )
subroutine zunghr(n, ilo, ihi, a, lda, tau, work, lwork, info)
ZUNGHR
subroutine zungqr(m, n, k, a, lda, tau, work, lwork, info)
ZUNGQR