109 SUBROUTINE sspt01( UPLO, N, A, AFAC, IPIV, C, LDC, RWORK, RESID )
122 REAL A( * ), AFAC( * ), C( LDC, * ), RWORK( * )
129 parameter( zero = 0.0e+0, one = 1.0e+0 )
132 INTEGER I, INFO, J, JC
137 REAL SLAMCH, SLANSP, SLANSY
138 EXTERNAL lsame, slamch, slansp, slansy
157 eps = slamch(
'Epsilon' )
158 anorm = slansp(
'1', uplo, n, a, rwork )
162 CALL slaset(
'Full', n, n, zero, one, c, ldc )
166 CALL slavsp( uplo,
'Transpose',
'Non-unit', n, n, afac, ipiv, c,
171 CALL slavsp( uplo,
'No transpose',
'Unit', n, n, afac, ipiv, c,
176 IF( lsame( uplo,
'U' ) )
THEN
180 c( i, j ) = c( i, j ) - a( jc+i )
188 c( i, j ) = c( i, j ) - a( jc+i-j )
196 resid = slansy(
'1', uplo, n, c, ldc, rwork )
198 IF( anorm.LE.zero )
THEN
202 resid = ( ( resid / real( n ) ) / anorm ) / eps
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 slavsp(uplo, trans, diag, n, nrhs, a, ipiv, b, ldb, info)
SLAVSP
subroutine sspt01(uplo, n, a, afac, ipiv, c, ldc, rwork, resid)
SSPT01