1SSYTF2(1)                LAPACK routine (version 3.1)                SSYTF2(1)
2
3
4

NAME

6       SSYTF2  -  the  factorization  of  a  real symmetric matrix A using the
7       Bunch-Kaufman diagonal pivoting method
8

SYNOPSIS

10       SUBROUTINE SSYTF2( UPLO, N, A, LDA, IPIV, INFO )
11
12           CHARACTER      UPLO
13
14           INTEGER        INFO, LDA, N
15
16           INTEGER        IPIV( * )
17
18           REAL           A( LDA, * )
19

PURPOSE

21       SSYTF2 computes the factorization of a real symmetric  matrix  A  using
22       the Bunch-Kaufman diagonal pivoting method:
23
24          A = U*D*U'  or  A = L*D*L'
25
26       where  U (or L) is a product of permutation and unit upper (lower) tri‐
27       angular matrices, U' is the transpose of U,  and  D  is  symmetric  and
28       block diagonal with 1-by-1 and 2-by-2 diagonal blocks.
29
30       This is the unblocked version of the algorithm, calling Level 2 BLAS.
31
32

ARGUMENTS

34       UPLO    (input) CHARACTER*1
35               Specifies  whether  the  upper  or lower triangular part of the
36               symmetric matrix A is stored:
37               = 'U':  Upper triangular
38               = 'L':  Lower triangular
39
40       N       (input) INTEGER
41               The order of the matrix A.  N >= 0.
42
43       A       (input/output) REAL array, dimension (LDA,N)
44               On entry, the symmetric matrix A.  If UPLO = 'U',  the  leading
45               n-by-n upper triangular part of A contains the upper triangular
46               part of the matrix A, and the strictly lower triangular part of
47               A  is  not referenced.  If UPLO = 'L', the leading n-by-n lower
48               triangular part of A contains the lower triangular part of  the
49               matrix  A,  and  the strictly upper triangular part of A is not
50               referenced.
51
52               On exit, the block diagonal matrix D and the  multipliers  used
53               to obtain the factor U or L (see below for further details).
54
55       LDA     (input) INTEGER
56               The leading dimension of the array A.  LDA >= max(1,N).
57
58       IPIV    (output) INTEGER array, dimension (N)
59               Details  of  the interchanges and the block structure of D.  If
60               IPIV(k) > 0, then rows and columns k and  IPIV(k)  were  inter‐
61               changed  and  D(k,k) is a 1-by-1 diagonal block.  If UPLO = 'U'
62               and IPIV(k) = IPIV(k-1) < 0, then  rows  and  columns  k-1  and
63               -IPIV(k) were interchanged and D(k-1:k,k-1:k) is a 2-by-2 diag‐
64               onal block.  If UPLO = 'L' and IPIV(k) = IPIV(k+1)  <  0,  then
65               rows  and  columns  k+1  and  -IPIV(k)  were  interchanged  and
66               D(k:k+1,k:k+1) is a 2-by-2 diagonal block.
67
68       INFO    (output) INTEGER
69               = 0: successful exit
70               < 0: if INFO = -k, the k-th argument had an illegal value
71               > 0: if INFO = k, D(k,k) is exactly  zero.   The  factorization
72               has  been completed, but the block diagonal matrix D is exactly
73               singular, and division by zero will occur  if  it  is  used  to
74               solve a system of equations.
75

FURTHER DETAILS

77       09-29-06 - patch from
78         Bobby Cheng, MathWorks
79
80         Replace l.204 and l.372
81              IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
82         by
83              IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR. SISNAN(ABSAKK) ) THEN
84
85       01-01-96 - Based on modifications by
86         J. Lewis, Boeing Computer Services Company
87         A.  Petitet,  Computer  Science Dept., Univ. of Tenn., Knoxville, USA
88       1-96 - Based on modifications by J. Lewis, Boeing Computer Services
89              Company
90
91       If UPLO = 'U', then A = U*D*U', where
92          U = P(n)*U(n)* ... *P(k)U(k)* ...,
93       i.e., U is a product of terms P(k)*U(k), where k decreases from n to  1
94       in  steps  of  1 or 2, and D is a block diagonal matrix with 1-by-1 and
95       2-by-2 diagonal blocks D(k).  P(k) is a permutation matrix  as  defined
96       by  IPIV(k),  and  U(k) is a unit upper triangular matrix, such that if
97       the diagonal block D(k) is of order s (s = 1 or 2), then
98
99                  (   I    v    0   )   k-s
100          U(k) =  (   0    I    0   )   s
101                  (   0    0    I   )   n-k
102                     k-s   s   n-k
103
104       If s = 1, D(k) overwrites A(k,k), and v overwrites A(1:k-1,k).  If s  =
105       2,  the  upper  triangle  of  D(k) overwrites A(k-1,k-1), A(k-1,k), and
106       A(k,k), and v overwrites A(1:k-2,k-1:k).
107
108       If UPLO = 'L', then A = L*D*L', where
109          L = P(1)*L(1)* ... *P(k)*L(k)* ...,
110       i.e., L is a product of terms P(k)*L(k), where k increases from 1 to  n
111       in  steps  of  1 or 2, and D is a block diagonal matrix with 1-by-1 and
112       2-by-2 diagonal blocks D(k).  P(k) is a permutation matrix  as  defined
113       by  IPIV(k),  and  L(k) is a unit lower triangular matrix, such that if
114       the diagonal block D(k) is of order s (s = 1 or 2), then
115
116                  (   I    0     0   )  k-1
117          L(k) =  (   0    I     0   )  s
118                  (   0    v     I   )  n-k-s+1
119                     k-1   s  n-k-s+1
120
121       If s = 1, D(k) overwrites A(k,k), and v overwrites A(k+1:n,k).  If s  =
122       2,  the  lower  triangle  of  D(k)  overwrites  A(k,k),  A(k+1,k),  and
123       A(k+1,k+1), and v overwrites A(k+2:n,k:k+1).
124
125
126
127
128 LAPACK routine (version 3.1)    November 2006                       SSYTF2(1)
Impressum