99 DOUBLE PRECISION FUNCTION zqrt11( M, K, A, LDA, TAU, WORK, LWORK )
107 INTEGER k, lda, lwork, m
110 COMPLEX*16 a( lda, * ), tau( * ), work( lwork )
116 DOUBLE PRECISION zero, one
117 parameter( zero = 0.0d0, one = 1.0d0 )
130 INTRINSIC dble, dcmplx
133 DOUBLE PRECISION rdummy( 1 )
141 IF( lwork.LT.m*m+m )
THEN
142 CALL
xerbla(
'ZQRT11', 7 )
151 CALL
zlaset(
'Full', m, m, dcmplx( zero ), dcmplx( one ), work,
156 CALL
zunm2r(
'Left',
'No transpose', m, m, k, a, lda, tau, work,
157 $ m, work( m*m+1 ), info )
161 CALL
zunm2r(
'Left',
'Conjugate transpose', m, m, k, a, lda, tau,
162 $ work, m, work( m*m+1 ), info )
165 work( ( j-1 )*m+j ) = work( ( j-1 )*m+j ) - one
169 $ ( dble( m )*
dlamch(
'Epsilon' ) )