91 DOUBLE PRECISION FUNCTION ztzt02( M, N, AF, LDA, TAU, WORK,
100 INTEGER lda, lwork, m, n
103 COMPLEX*16 af( lda, * ), tau( * ), work( lwork )
109 DOUBLE PRECISION zero, one
110 parameter( zero = 0.0d0, one = 1.0d0 )
116 DOUBLE PRECISION rwork( 1 )
126 INTRINSIC dble, dcmplx, dconjg, max
132 IF( lwork.LT.n*n+n )
THEN
133 CALL
xerbla(
'ZTZT02', 7 )
139 IF( m.LE.0 .OR. n.LE.0 )
144 CALL
zlaset(
'Full', n, n, dcmplx( zero ), dcmplx( one ), work,
150 CALL
zlatzm(
'Left', n-m+1, n, af( i, m+1 ), lda, tau( i ),
151 $ work( i ), work( m+1 ), n, work( n*n+1 ) )
157 CALL
zlatzm(
'Left', n-m+1, n, af( i, m+1 ), lda,
158 $ dconjg( tau( i ) ), work( i ), work( m+1 ), n,
165 work( ( i-1 )*n+i ) = work( ( i-1 )*n+i ) - one
169 $ (
dlamch(
'Epsilon' )*dble( max( m, n ) ) )