91 DOUBLE PRECISION FUNCTION dtzt02( M, N, AF, LDA, TAU, WORK,
100 INTEGER lda, lwork, m, n
103 DOUBLE PRECISION af( lda, * ), tau( * ), work( lwork )
109 DOUBLE PRECISION zero, one
110 parameter( zero = 0.0d0, one = 1.0d0 )
116 DOUBLE PRECISION rwork( 1 )
132 IF( lwork.LT.n*n+n )
THEN
133 CALL
xerbla(
'DTZT02', 7 )
139 IF( m.LE.0 .OR. n.LE.0 )
144 CALL
dlaset(
'Full', n, n, zero, one, work, n )
149 CALL
dlatzm(
'Left', n-m+1, n, af( i, m+1 ), lda, tau( i ),
150 $ work( i ), work( m+1 ), n, work( n*n+1 ) )
156 CALL
dlatzm(
'Left', n-m+1, n, af( i, m+1 ), lda, tau( i ),
157 $ work( i ), work( m+1 ), n, work( n*n+1 ) )
163 work( ( i-1 )*n+i ) = work( ( i-1 )*n+i ) - one
167 $ (
dlamch(
'Epsilon' )*dble( max( m, n ) ) )