1SSYSV(1)              LAPACK driver routine (version 3.1)             SSYSV(1)
2
3
4

NAME

6       SSYSV - the solution to a real system of linear equations  A * X = B,
7

SYNOPSIS

9       SUBROUTINE SSYSV( UPLO,  N,  NRHS,  A,  LDA, IPIV, B, LDB, WORK, LWORK,
10                         INFO )
11
12           CHARACTER     UPLO
13
14           INTEGER       INFO, LDA, LDB, LWORK, N, NRHS
15
16           INTEGER       IPIV( * )
17
18           REAL          A( LDA, * ), B( LDB, * ), WORK( * )
19

PURPOSE

21       SSYSV computes the solution to a real system of linear equations
22          A * X = B, where A is an N-by-N symmetric matrix and X and B are  N-
23       by-NRHS matrices.
24
25       The diagonal pivoting method is used to factor A as
26          A = U * D * U**T,  if UPLO = 'U', or
27          A = L * D * L**T,  if UPLO = 'L',
28       where  U (or L) is a product of permutation and unit upper (lower) tri‐
29       angular matrices, and D is symmetric and block diagonal with 1-by-1 and
30       2-by-2  diagonal  blocks.  The factored form of A is then used to solve
31       the system of equations A * X = B.
32
33

ARGUMENTS

35       UPLO    (input) CHARACTER*1
36               = 'U':  Upper triangle of A is stored;
37               = 'L':  Lower triangle of A is stored.
38
39       N       (input) INTEGER
40               The number of linear equations, i.e., the order of  the  matrix
41               A.  N >= 0.
42
43       NRHS    (input) INTEGER
44               The  number of right hand sides, i.e., the number of columns of
45               the matrix B.  NRHS >= 0.
46
47       A       (input/output) REAL array, dimension (LDA,N)
48               On entry, the symmetric matrix A.  If UPLO = 'U',  the  leading
49               N-by-N upper triangular part of A contains the upper triangular
50               part of the matrix A, and the strictly lower triangular part of
51               A  is  not referenced.  If UPLO = 'L', the leading N-by-N lower
52               triangular part of A contains the lower triangular part of  the
53               matrix  A,  and  the strictly upper triangular part of A is not
54               referenced.
55
56               On exit, if INFO = 0, the block diagonal matrix D and the  mul‐
57               tipliers  used  to obtain the factor U or L from the factoriza‐
58               tion A = U*D*U**T or A = L*D*L**T as computed by SSYTRF.
59
60       LDA     (input) INTEGER
61               The leading dimension of the array A.  LDA >= max(1,N).
62
63       IPIV    (output) INTEGER array, dimension (N)
64               Details of the interchanges and the block structure  of  D,  as
65               determined  by SSYTRF.  If IPIV(k) > 0, then rows and columns k
66               and IPIV(k) were interchanged, and D(k,k) is a 1-by-1  diagonal
67               block.   If  UPLO  = 'U' and IPIV(k) = IPIV(k-1) < 0, then rows
68               and  columns   k-1   and   -IPIV(k)   were   interchanged   and
69               D(k-1:k,k-1:k)  is  a 2-by-2 diagonal block.  If UPLO = 'L' and
70               IPIV(k) = IPIV(k+1) < 0, then rows and columns k+1 and -IPIV(k)
71               were  interchanged  and  D(k:k+1,k:k+1)  is  a  2-by-2 diagonal
72               block.
73
74       B       (input/output) REAL array, dimension (LDB,NRHS)
75               On entry, the N-by-NRHS right hand side matrix B.  On exit,  if
76               INFO = 0, the N-by-NRHS solution matrix X.
77
78       LDB     (input) INTEGER
79               The leading dimension of the array B.  LDB >= max(1,N).
80
81       WORK    (workspace/output) REAL array, dimension (MAX(1,LWORK))
82               On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
83
84       LWORK   (input) INTEGER
85               The length of WORK.  LWORK >= 1, and for best performance LWORK
86               >= max(1,N*NB), where NB is the optimal blocksize for SSYTRF.
87
88               If LWORK = -1, then a workspace query is assumed;  the  routine
89               only  calculates  the  optimal  size of the WORK array, returns
90               this value as the first entry of the WORK array, and  no  error
91               message related to LWORK is issued by XERBLA.
92
93       INFO    (output) INTEGER
94               = 0: successful exit
95               < 0: if INFO = -i, the i-th argument had an illegal value
96               >  0:  if  INFO = i, D(i,i) is exactly zero.  The factorization
97               has been completed, but the block diagonal matrix D is  exactly
98               singular, so the solution could not be computed.
99
100
101
102 LAPACK driver routine (version 3.N1o)vember 2006                        SSYSV(1)
Impressum