116 SUBROUTINE stptri( UPLO, DIAG, N, AP, INFO )
134 parameter( one = 1.0e+0, zero = 0.0e+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(
'STPTRI', -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 stpmv(
'Upper',
'No transpose', diag, j-1, ap,
205 CALL sscal( j-1, ajj, ap( jc ), 1 )
216 ap( jc ) = one / ap( jc )
225 CALL stpmv(
'Lower',
'No transpose', diag, n-j,
226 $ ap( jclast ), ap( jc+1 ), 1 )
227 CALL sscal( n-j, ajj, ap( jc+1 ), 1 )
subroutine xerbla(srname, info)
subroutine sscal(n, sa, sx, incx)
SSCAL
subroutine stpmv(uplo, trans, diag, n, ap, x, incx)
STPMV
subroutine stptri(uplo, diag, n, ap, info)
STPTRI