1DPPTRF(1) LAPACK routine (version 3.2) DPPTRF(1)
2
3
4
6 DPPTRF - computes the Cholesky factorization of a real symmetric posi‐
7 tive definite matrix A stored in packed format
8
10 SUBROUTINE DPPTRF( UPLO, N, AP, INFO )
11
12 CHARACTER UPLO
13
14 INTEGER INFO, N
15
16 DOUBLE PRECISION AP( * )
17
19 DPPTRF computes the Cholesky factorization of a real symmetric positive
20 definite matrix A stored in packed format. The factorization has the
21 form
22 A = U**T * U, if UPLO = 'U', or
23 A = L * L**T, if UPLO = 'L',
24 where U is an upper triangular matrix and L is lower triangular.
25
27 UPLO (input) CHARACTER*1
28 = 'U': Upper triangle of A is stored;
29 = 'L': Lower triangle of A is stored.
30
31 N (input) INTEGER
32 The order of the matrix A. N >= 0.
33
34 AP (input/output) DOUBLE PRECISION array, dimension (N*(N+1)/2)
35 On entry, the upper or lower triangle of the symmetric matrix
36 A, packed columnwise in a linear array. The j-th column of A
37 is stored in the array AP as follows: if UPLO = 'U', AP(i +
38 (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i +
39 (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n. See below for further
40 details. On exit, if INFO = 0, the triangular factor U or L
41 from the Cholesky factorization A = U**T*U or A = L*L**T, in
42 the same storage format as A.
43
44 INFO (output) INTEGER
45 = 0: successful exit
46 < 0: if INFO = -i, the i-th argument had an illegal value
47 > 0: if INFO = i, the leading minor of order i is not positive
48 definite, and the factorization could not be completed.
49
51 The packed storage scheme is illustrated by the following example when
52 N = 4, UPLO = 'U':
53 Two-dimensional storage of the symmetric matrix A:
54 a11 a12 a13 a14
55 a22 a23 a24
56 a33 a34 (aij = aji)
57 a44
58 Packed storage of the upper triangle of A:
59 AP = [ a11, a12, a22, a13, a23, a33, a14, a24, a34, a44 ]
60
61
62
63 LAPACK routine (version 3.2) November 2008 DPPTRF(1)