1SPTTS2(1) LAPACK routine (version 3.2) SPTTS2(1)
2
3
4
6 SPTTS2 - solves a tridiagonal system of the form A * X = B using the
7 L*D*L' factorization of A computed by SPTTRF
8
10 SUBROUTINE SPTTS2( N, NRHS, D, E, B, LDB )
11
12 INTEGER LDB, N, NRHS
13
14 REAL B( LDB, * ), D( * ), E( * )
15
17 SPTTS2 solves a tridiagonal system of the form
18 A * X = B using the L*D*L' factorization of A computed by SPTTRF. D
19 is a diagonal matrix specified in the vector D, L is a unit bidiagonal
20 matrix whose subdiagonal is specified in the vector E, and X and B are
21 N by NRHS matrices.
22
24 N (input) INTEGER
25 The order of the tridiagonal matrix A. N >= 0.
26
27 NRHS (input) INTEGER
28 The number of right hand sides, i.e., the number of columns of
29 the matrix B. NRHS >= 0.
30
31 D (input) REAL array, dimension (N)
32 The n diagonal elements of the diagonal matrix D from the
33 L*D*L' factorization of A.
34
35 E (input) REAL array, dimension (N-1)
36 The (n-1) subdiagonal elements of the unit bidiagonal factor L
37 from the L*D*L' factorization of A. E can also be regarded as
38 the superdiagonal of the unit bidiagonal factor U from the fac‐
39 torization A = U'*D*U.
40
41 B (input/output) REAL array, dimension (LDB,NRHS)
42 On entry, the right hand side vectors B for the system of lin‐
43 ear equations. On exit, the solution vectors, X.
44
45 LDB (input) INTEGER
46 The leading dimension of the array B. LDB >= max(1,N).
47
48
49
50 LAPACK routine (version 3.2) November 2008 SPTTS2(1)