111 SUBROUTINE sspt01( UPLO, N, A, AFAC, IPIV, C, LDC, RWORK, RESID )
125 REAL A( * ), AFAC( * ), C( ldc, * ), RWORK( * )
132 parameter ( zero = 0.0e+0, one = 1.0e+0 )
135 INTEGER I, INFO, J, JC
140 REAL SLAMCH, SLANSP, SLANSY
141 EXTERNAL lsame, slamch, slansp, slansy
160 eps = slamch(
'Epsilon' )
161 anorm = slansp(
'1', uplo, n, a, rwork )
165 CALL slaset(
'Full', n, n, zero, one, c, ldc )
169 CALL slavsp( uplo,
'Transpose',
'Non-unit', n, n, afac, ipiv, c,
174 CALL slavsp( uplo,
'No transpose',
'Unit', n, n, afac, ipiv, c,
179 IF( lsame( uplo,
'U' ) )
THEN
183 c( i, j ) = c( i, j ) - a( jc+i )
191 c( i, j ) = c( i, j ) - a( jc+i-j )
199 resid = slansy(
'1', uplo, n, c, ldc, rwork )
201 IF( anorm.LE.zero )
THEN
205 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 sspt01(UPLO, N, A, AFAC, IPIV, C, LDC, RWORK, RESID)
SSPT01
subroutine slavsp(UPLO, TRANS, DIAG, N, NRHS, A, IPIV, B, LDB, INFO)
SLAVSP