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