108 SUBROUTINE dppt03( UPLO, N, A, AINV, WORK, LDWORK, RWORK, RCOND,
118 DOUBLE PRECISION RCOND, RESID
121 DOUBLE PRECISION A( * ), AINV( * ), RWORK( * ),
128 DOUBLE PRECISION ZERO, ONE
129 parameter( zero = 0.0d+0, one = 1.0d+0 )
133 DOUBLE PRECISION AINVNM, ANORM, EPS
137 DOUBLE PRECISION DLAMCH, DLANGE, DLANSP
138 EXTERNAL lsame, dlamch, dlange, dlansp
158 eps = dlamch(
'Epsilon' )
159 anorm = dlansp(
'1', uplo, n, a, rwork )
160 ainvnm = dlansp(
'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 dcopy( j, ainv( jj ), 1, work( 1, j+1 ), 1 )
180 CALL dcopy( j-1, ainv( jj ), 1, work( j, 2 ), ldwork )
183 jj = ( ( n-1 )*n ) / 2 + 1
184 CALL dcopy( n-1, ainv( jj ), 1, work( n, 2 ), ldwork )
189 CALL dspmv(
'Upper', n, -one, a, work( 1, j+1 ), 1, zero,
192 CALL dspmv(
'Upper', n, -one, a, ainv( jj ), 1, zero,
203 CALL dcopy( n-1, ainv( 2 ), 1, work( 1, 1 ), ldwork )
206 CALL dcopy( n-j+1, ainv( jj ), 1, work( j, j-1 ), 1 )
207 CALL dcopy( n-j, ainv( jj+1 ), 1, work( j, j ), ldwork )
214 CALL dspmv(
'Lower', n, -one, a, work( 1, j-1 ), 1, zero,
217 CALL dspmv(
'Lower', n, -one, a, ainv( 1 ), 1, zero,
225 work( i, i ) = work( i, i ) + one
230 resid = dlange(
'1', n, n, work, ldwork, rwork )
232 resid = ( ( resid*rcond ) / eps ) / dble( n )
subroutine dppt03(uplo, n, a, ainv, work, ldwork, rwork, rcond, resid)
DPPT03
subroutine dcopy(n, dx, incx, dy, incy)
DCOPY
subroutine dspmv(uplo, n, alpha, ap, x, incx, beta, y, incy)
DSPMV