99 REAL FUNCTION cqrt11( M, K, A, LDA, TAU, WORK, LWORK )
107 INTEGER k, lda, lwork, m
110 COMPLEX a( lda, * ), tau( * ), work( lwork )
117 parameter( zero = 0.0e0, one = 1.0e0 )
130 INTRINSIC cmplx, real
141 IF( lwork.LT.m*m+m )
THEN
142 CALL
xerbla(
'CQRT11', 7 )
151 CALL
claset(
'Full', m, m, cmplx( zero ), cmplx( one ), work, m )
155 CALL
cunm2r(
'Left',
'No transpose', m, m, k, a, lda, tau, work,
156 $ m, work( m*m+1 ), info )
160 CALL
cunm2r(
'Left',
'Conjugate transpose', m, m, k, a, lda, tau,
161 $ work, m, work( m*m+1 ), info )
164 work( ( j-1 )*m+j ) = work( ( j-1 )*m+j ) - one
168 $ (
REAL( m )*
slamch(
'Epsilon' ) )