1
*> \brief \b SPOTF2 computes the Cholesky factorization of a symmetric/Hermitian positive definite matrix (unblocked algorithm).
3
* =========== DOCUMENTATION ===========
5
* Online html documentation available at
6
* http://www.netlib.org/lapack/explore-html/
9
*> Download SPOTF2 + dependencies
10
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/spotf2.f">
12
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/spotf2.f">
14
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/spotf2.f">
21
* SUBROUTINE SPOTF2( UPLO, N, A, LDA, INFO )
23
* .. Scalar Arguments ..
25
* INTEGER INFO, LDA, N
27
* .. Array Arguments ..
37
*> SPOTF2 computes the Cholesky factorization of a real symmetric
38
*> positive definite matrix A.
40
*> The factorization has the form
41
*> A = U**T * U , if UPLO = 'U', or
42
*> A = L * L**T, if UPLO = 'L',
43
*> where U is an upper triangular matrix and L is lower triangular.
45
*> This is the unblocked version of the algorithm, calling Level 2 BLAS.
53
*> UPLO is CHARACTER*1
54
*> Specifies whether the upper or lower triangular part of the
55
*> symmetric matrix A is stored.
56
*> = 'U': Upper triangular
57
*> = 'L': Lower triangular
63
*> The order of the matrix A. N >= 0.
68
*> A is REAL array, dimension (LDA,N)
69
*> On entry, the symmetric matrix A. If UPLO = 'U', the leading
70
*> n by n upper triangular part of A contains the upper
71
*> triangular part of the matrix A, and the strictly lower
72
*> triangular part of A is not referenced. If UPLO = 'L', the
73
*> leading n by n lower triangular part of A contains the lower
74
*> triangular part of the matrix A, and the strictly upper
75
*> triangular part of A is not referenced.
77
*> On exit, if INFO = 0, the factor U or L from the Cholesky
78
*> factorization A = U**T *U or A = L*L**T.
84
*> The leading dimension of the array A. LDA >= max(1,N).
90
*> = 0: successful exit
91
*> < 0: if INFO = -k, the k-th argument had an illegal value
92
*> > 0: if INFO = k, the leading minor of order k is not
93
*> positive definite, and the factorization could not be
100
*> \author Univ. of Tennessee
101
*> \author Univ. of California Berkeley
102
*> \author Univ. of Colorado Denver
105
*> \date September 2012
107
*> \ingroup realPOcomputational
109
* =====================================================================
1
110
SUBROUTINE SPOTF2( UPLO, N, A, LDA, INFO )
3
* -- LAPACK routine (version 2.0) --
4
* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
5
* Courant Institute, Argonne National Lab, and Rice University
112
* -- LAPACK computational routine (version 3.4.2) --
113
* -- LAPACK is a software package provided by Univ. of Tennessee, --
114
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
8
117
* .. Scalar Arguments ..
17
* $Id: spotf2.f 19697 2010-10-29 16:57:34Z d3y133 $
22
* SPOTF2 computes the Cholesky factorization of a real symmetric
23
* positive definite matrix A.
25
* The factorization has the form
26
* A = U' * U , if UPLO = 'U', or
27
* A = L * L', if UPLO = 'L',
28
* where U is an upper triangular matrix and L is lower triangular.
30
* This is the unblocked version of the algorithm, calling Level 2 BLAS.
35
* UPLO (input) CHARACTER*1
36
* Specifies whether the upper or lower triangular part of the
37
* symmetric matrix A is stored.
38
* = 'U': Upper triangular
39
* = 'L': Lower triangular
42
* The order of the matrix A. N >= 0.
44
* A (input/output) REAL array, dimension (LDA,N)
45
* On entry, the symmetric matrix A. If UPLO = 'U', the leading
46
* n by n upper triangular part of A contains the upper
47
* triangular part of the matrix A, and the strictly lower
48
* triangular part of A is not referenced. If UPLO = 'L', the
49
* leading n by n lower triangular part of A contains the lower
50
* triangular part of the matrix A, and the strictly upper
51
* triangular part of A is not referenced.
53
* On exit, if INFO = 0, the factor U or L from the Cholesky
54
* factorization A = U'*U or A = L*L'.
57
* The leading dimension of the array A. LDA >= max(1,N).
59
* INFO (output) INTEGER
60
* = 0: successful exit
61
* < 0: if INFO = -k, the k-th argument had an illegal value
62
* > 0: if INFO = k, the leading minor of order k is not
63
* positive definite, and the factorization could not be
66
125
* =====================================================================
68
127
* .. Parameters ..