91 REAL FUNCTION crzt02( M, N, AF, LDA, TAU, WORK,
100 INTEGER lda, lwork, m, n
103 COMPLEX af( lda, * ), tau( * ), work( lwork )
110 parameter( zero = 0.0e0, one = 1.0e0 )
126 INTRINSIC cmplx, max, real
132 IF( lwork.LT.n*n+n )
THEN
133 CALL
xerbla(
'CRZT02', 7 )
139 IF( m.LE.0 .OR. n.LE.0 )
144 CALL
claset(
'Full', n, n, cmplx( zero ), cmplx( one ), work, n )
148 CALL
cunmrz(
'Left',
'No transpose', n, n, m, n-m, af, lda, tau,
149 $ work, n, work( n*n+1 ), lwork-n*n, info )
153 CALL
cunmrz(
'Left',
'Conjugate transpose', n, n, m, n-m, af, lda,
154 $ tau, work, n, work( n*n+1 ), lwork-n*n, info )
159 work( ( i-1 )*n+i ) = work( ( i-1 )*n+i ) - one
163 $ (
slamch(
'Epsilon' )*
REAL( MAX( M, N ) ) )