97 REAL function
sqrt11( m, k, a, lda, tau, work, lwork )
104 INTEGER k, lda, lwork, m
107 REAL a( lda, * ), tau( * ), work( lwork )
114 parameter( zero = 0.0e0, one = 1.0e0 )
138 IF( lwork.LT.m*m+m )
THEN
139 CALL xerbla(
'SQRT11', 7 )
148 CALL slaset(
'Full', m, m, zero, one, work, m )
152 CALL sorm2r(
'Left',
'No transpose', m, m, k, a, lda, tau, work,
153 $ m, work( m*m+1 ), info )
157 CALL sorm2r(
'Left',
'Transpose', m, m, k, a, lda, tau, work, m,
158 $ work( m*m+1 ), info )
161 work( ( j-1 )*m+j ) = work( ( j-1 )*m+j ) - one
165 $ ( real( m )*
slamch(
'Epsilon' ) )
subroutine xerbla(srname, info)
real function slamch(cmach)
SLAMCH
real function slange(norm, m, n, a, lda, work)
SLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
subroutine slaset(uplo, m, n, alpha, beta, a, lda)
SLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
subroutine sorm2r(side, trans, m, n, k, a, lda, tau, c, ldc, work, info)
SORM2R multiplies a general matrix by the orthogonal matrix from a QR factorization determined by sge...
real function sqrt11(m, k, a, lda, tau, work, lwork)
SQRT11