SUBROUTINE SPTSL(N,D,E,B) C***BEGIN PROLOGUE SPTSL C***DATE WRITTEN 780814 (YYMMDD) C***REVISION DATE 820801 (YYMMDD) C***CATEGORY NO. D2B2A C***KEYWORDS LINEAR ALGEBRA,LINPACK,MATRIX,POSITIVE DEFINITE,SOLVE, C TRIDIAGONAL C***AUTHOR DONGARRA, J., (ANL) C***PURPOSE Solves the system A*X=B where A is POSITIVE DEFINITE C and TRIDIAGONAL C***DESCRIPTION C C SPTSL given a positive definite tridiagonal matrix and a right C hand side will find the solution. C C On Entry C C N INTEGER C is the order of the tridiagonal matrix. C C D REAL(N) C is the diagonal of the tridiagonal matrix. C On output, D is destroyed. C C E REAL(N) C is the offdiagonal of the tridiagonal matrix. C E(1) through E(N-1) should contain the C offdiagonal. C C B REAL(N) C is the right hand side vector. C C On Return C C B contains the solution. C C LINPACK. This version dated 08/14/78 . C Jack Dongarra, Argonne National Laboratory. C C No externals C Fortran MOD C***REFERENCES DONGARRA J.J., BUNCH J.R., MOLER C.B., STEWART G.W., C *LINPACK USERS GUIDE*, SIAM, 1979. C***ROUTINES CALLED (NONE) C***END PROLOGUE SPTSL