~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/lapack/single/spotrf.f

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
*> \brief \b SPOTRF
 
2
*
 
3
*  =========== DOCUMENTATION ===========
 
4
*
 
5
* Online html documentation available at 
 
6
*            http://www.netlib.org/lapack/explore-html/ 
 
7
*
 
8
*> \htmlonly
 
9
*> Download SPOTRF + dependencies 
 
10
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/spotrf.f"> 
 
11
*> [TGZ]</a> 
 
12
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/spotrf.f"> 
 
13
*> [ZIP]</a> 
 
14
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/spotrf.f"> 
 
15
*> [TXT]</a>
 
16
*> \endhtmlonly 
 
17
*
 
18
*  Definition:
 
19
*  ===========
 
20
*
 
21
*       SUBROUTINE SPOTRF( UPLO, N, A, LDA, INFO )
 
22
 
23
*       .. Scalar Arguments ..
 
24
*       CHARACTER          UPLO
 
25
*       INTEGER            INFO, LDA, N
 
26
*       ..
 
27
*       .. Array Arguments ..
 
28
*       REAL               A( LDA, * )
 
29
*       ..
 
30
*  
 
31
*
 
32
*> \par Purpose:
 
33
*  =============
 
34
*>
 
35
*> \verbatim
 
36
*>
 
37
*> SPOTRF computes the Cholesky factorization of a real symmetric
 
38
*> positive definite matrix A.
 
39
*>
 
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.
 
44
*>
 
45
*> This is the block version of the algorithm, calling Level 3 BLAS.
 
46
*> \endverbatim
 
47
*
 
48
*  Arguments:
 
49
*  ==========
 
50
*
 
51
*> \param[in] UPLO
 
52
*> \verbatim
 
53
*>          UPLO is CHARACTER*1
 
54
*>          = 'U':  Upper triangle of A is stored;
 
55
*>          = 'L':  Lower triangle of A is stored.
 
56
*> \endverbatim
 
57
*>
 
58
*> \param[in] N
 
59
*> \verbatim
 
60
*>          N is INTEGER
 
61
*>          The order of the matrix A.  N >= 0.
 
62
*> \endverbatim
 
63
*>
 
64
*> \param[in,out] A
 
65
*> \verbatim
 
66
*>          A is REAL array, dimension (LDA,N)
 
67
*>          On entry, the symmetric matrix A.  If UPLO = 'U', the leading
 
68
*>          N-by-N upper triangular part of A contains the upper
 
69
*>          triangular part of the matrix A, and the strictly lower
 
70
*>          triangular part of A is not referenced.  If UPLO = 'L', the
 
71
*>          leading N-by-N lower triangular part of A contains the lower
 
72
*>          triangular part of the matrix A, and the strictly upper
 
73
*>          triangular part of A is not referenced.
 
74
*>
 
75
*>          On exit, if INFO = 0, the factor U or L from the Cholesky
 
76
*>          factorization A = U**T*U or A = L*L**T.
 
77
*> \endverbatim
 
78
*>
 
79
*> \param[in] LDA
 
80
*> \verbatim
 
81
*>          LDA is INTEGER
 
82
*>          The leading dimension of the array A.  LDA >= max(1,N).
 
83
*> \endverbatim
 
84
*>
 
85
*> \param[out] INFO
 
86
*> \verbatim
 
87
*>          INFO is INTEGER
 
88
*>          = 0:  successful exit
 
89
*>          < 0:  if INFO = -i, the i-th argument had an illegal value
 
90
*>          > 0:  if INFO = i, the leading minor of order i is not
 
91
*>                positive definite, and the factorization could not be
 
92
*>                completed.
 
93
*> \endverbatim
 
94
*
 
95
*  Authors:
 
96
*  ========
 
97
*
 
98
*> \author Univ. of Tennessee 
 
99
*> \author Univ. of California Berkeley 
 
100
*> \author Univ. of Colorado Denver 
 
101
*> \author NAG Ltd. 
 
102
*
 
103
*> \date November 2011
 
104
*
 
105
*> \ingroup realPOcomputational
 
106
*
 
107
*  =====================================================================
1
108
      SUBROUTINE SPOTRF( UPLO, N, A, LDA, INFO )
2
109
*
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
6
 
*     March 31, 1993 
 
110
*  -- LAPACK computational routine (version 3.4.0) --
 
111
*  -- LAPACK is a software package provided by Univ. of Tennessee,    --
 
112
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 
113
*     November 2011
7
114
*
8
115
*     .. Scalar Arguments ..
9
116
      CHARACTER          UPLO
13
120
      REAL               A( LDA, * )
14
121
*     ..
15
122
*
16
 
c
17
 
* $Id: spotrf.f 19697 2010-10-29 16:57:34Z d3y133 $
18
 
c
19
 
*  Purpose
20
 
*  =======
21
 
*
22
 
*  SPOTRF computes the Cholesky factorization of a real symmetric
23
 
*  positive definite matrix A.
24
 
*
25
 
*  The factorization has the form
26
 
*     A = U**T * U,  if UPLO = 'U', or
27
 
*     A = L  * L**T,  if UPLO = 'L',
28
 
*  where U is an upper triangular matrix and L is lower triangular.
29
 
*
30
 
*  This is the block version of the algorithm, calling Level 3 BLAS.
31
 
*
32
 
*  Arguments
33
 
*  =========
34
 
*
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 order of the matrix A.  N >= 0.
41
 
*
42
 
*  A       (input/output) REAL array, dimension (LDA,N)
43
 
*          On entry, the symmetric matrix A.  If UPLO = 'U', the leading
44
 
*          N-by-N upper triangular part of A contains the upper
45
 
*          triangular part of the matrix A, and the strictly lower
46
 
*          triangular part of A is not referenced.  If UPLO = 'L', the
47
 
*          leading N-by-N lower triangular part of A contains the lower
48
 
*          triangular part of the matrix A, and the strictly upper
49
 
*          triangular part of A is not referenced.
50
 
*
51
 
*          On exit, if INFO = 0, the factor U or L from the Cholesky
52
 
*          factorization A = U**T*U or A = L*L**T.
53
 
*
54
 
*  LDA     (input) INTEGER
55
 
*          The leading dimension of the array A.  LDA >= max(1,N).
56
 
*
57
 
*  INFO    (output) INTEGER
58
 
*          = 0:  successful exit
59
 
*          < 0:  if INFO = -i, the i-th argument had an illegal value
60
 
*          > 0:  if INFO = i, the leading minor of order i is not
61
 
*                positive definite, and the factorization could not be
62
 
*                completed.
63
 
*
64
123
*  =====================================================================
65
124
*
66
125
*     .. Parameters ..
119
178
*
120
179
         IF( UPPER ) THEN
121
180
*
122
 
*           Compute the Cholesky factorization A = U'*U.
 
181
*           Compute the Cholesky factorization A = U**T*U.
123
182
*
124
183
            DO 10 J = 1, N, NB
125
184
*
147
206
*
148
207
         ELSE
149
208
*
150
 
*           Compute the Cholesky factorization A = L*L'.
 
209
*           Compute the Cholesky factorization A = L*L**T.
151
210
*
152
211
            DO 20 J = 1, N, NB
153
212
*