116 SUBROUTINE dtptri( UPLO, DIAG, N, AP, INFO )
127 DOUBLE PRECISION AP( * )
133 DOUBLE PRECISION ONE, ZERO
134 parameter( one = 1.0d+0, zero = 0.0d+0 )
137 LOGICAL NOUNIT, UPPER
138 INTEGER J, JC, JCLAST, JJ
153 upper = lsame( uplo,
'U' )
154 nounit = lsame( diag,
'N' )
155 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
157 ELSE IF( .NOT.nounit .AND. .NOT.lsame( diag,
'U' ) )
THEN
159 ELSE IF( n.LT.0 )
THEN
163 CALL xerbla(
'DTPTRI', -info )
174 IF( ap( jj ).EQ.zero )
180 IF( ap( jj ).EQ.zero )
182 jj = jj + n - info + 1
195 ap( jc+j-1 ) = one / ap( jc+j-1 )
203 CALL dtpmv(
'Upper',
'No transpose', diag, j-1, ap,
205 CALL dscal( j-1, ajj, ap( jc ), 1 )
216 ap( jc ) = one / ap( jc )
225 CALL dtpmv(
'Lower',
'No transpose', diag, n-j,
226 $ ap( jclast ), ap( jc+1 ), 1 )
227 CALL dscal( n-j, ajj, ap( jc+1 ), 1 )
subroutine xerbla(srname, info)
subroutine dscal(n, da, dx, incx)
DSCAL
subroutine dtpmv(uplo, trans, diag, n, ap, x, incx)
DTPMV
subroutine dtptri(uplo, diag, n, ap, info)
DTPTRI