108 SUBROUTINE sppt03( UPLO, N, A, AINV, WORK, LDWORK, RWORK, RCOND,
121 REAL A( * ), AINV( * ), RWORK( * ),
129 parameter( zero = 0.0e+0, one = 1.0e+0 )
133 REAL AINVNM, ANORM, EPS
137 REAL SLAMCH, SLANGE, SLANSP
138 EXTERNAL lsame, slamch, slange, slansp
158 eps = slamch(
'Epsilon' )
159 anorm = slansp(
'1', uplo, n, a, rwork )
160 ainvnm = slansp(
'1', uplo, n, ainv, rwork )
161 IF( anorm.LE.zero .OR. ainvnm.EQ.zero )
THEN
166 rcond = ( one / anorm ) / ainvnm
173 IF( lsame( uplo,
'U' ) )
THEN
179 CALL scopy( j, ainv( jj ), 1, work( 1, j+1 ), 1 )
180 CALL scopy( j-1, ainv( jj ), 1, work( j, 2 ), ldwork )
183 jj = ( ( n-1 )*n ) / 2 + 1
184 CALL scopy( n-1, ainv( jj ), 1, work( n, 2 ), ldwork )
189 CALL sspmv(
'Upper', n, -one, a, work( 1, j+1 ), 1, zero,
192 CALL sspmv(
'Upper', n, -one, a, ainv( jj ), 1, zero,
203 CALL scopy( n-1, ainv( 2 ), 1, work( 1, 1 ), ldwork )
206 CALL scopy( n-j+1, ainv( jj ), 1, work( j, j-1 ), 1 )
207 CALL scopy( n-j, ainv( jj+1 ), 1, work( j, j ), ldwork )
214 CALL sspmv(
'Lower', n, -one, a, work( 1, j-1 ), 1, zero,
217 CALL sspmv(
'Lower', n, -one, a, ainv( 1 ), 1, zero,
225 work( i, i ) = work( i, i ) + one
230 resid = slange(
'1', n, n, work, ldwork, rwork )
232 resid = ( ( resid*rcond ) / eps ) / real( n )
subroutine scopy(n, sx, incx, sy, incy)
SCOPY
subroutine sspmv(uplo, n, alpha, ap, x, incx, beta, y, incy)
SSPMV
subroutine sppt03(uplo, n, a, ainv, work, ldwork, rwork, rcond, resid)
SPPT03