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

« back to all changes in this revision

Viewing changes to src/lapack/double/dposv.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
 
*
2
 
* $Id: dposv.f 19697 2010-10-29 16:57:34Z d3y133 $
3
 
*
4
 
 
 
1
*> \brief <b> DPOSV computes the solution to system of linear equations A * X = B for PO matrices</b>
 
2
*
 
3
*  =========== DOCUMENTATION ===========
 
4
*
 
5
* Online html documentation available at 
 
6
*            http://www.netlib.org/lapack/explore-html/ 
 
7
*
 
8
*> \htmlonly
 
9
*> Download DPOSV + dependencies 
 
10
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dposv.f"> 
 
11
*> [TGZ]</a> 
 
12
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dposv.f"> 
 
13
*> [ZIP]</a> 
 
14
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dposv.f"> 
 
15
*> [TXT]</a>
 
16
*> \endhtmlonly 
 
17
*
 
18
*  Definition:
 
19
*  ===========
 
20
*
 
21
*       SUBROUTINE DPOSV( UPLO, N, NRHS, A, LDA, B, LDB, INFO )
 
22
 
23
*       .. Scalar Arguments ..
 
24
*       CHARACTER          UPLO
 
25
*       INTEGER            INFO, LDA, LDB, N, NRHS
 
26
*       ..
 
27
*       .. Array Arguments ..
 
28
*       DOUBLE PRECISION   A( LDA, * ), B( LDB, * )
 
29
*       ..
 
30
*  
 
31
*
 
32
*> \par Purpose:
 
33
*  =============
 
34
*>
 
35
*> \verbatim
 
36
*>
 
37
*> DPOSV computes the solution to a real system of linear equations
 
38
*>    A * X = B,
 
39
*> where A is an N-by-N symmetric positive definite matrix and X and B
 
40
*> are N-by-NRHS matrices.
 
41
*>
 
42
*> The Cholesky decomposition is used to factor A as
 
43
*>    A = U**T* U,  if UPLO = 'U', or
 
44
*>    A = L * L**T,  if UPLO = 'L',
 
45
*> where U is an upper triangular matrix and L is a lower triangular
 
46
*> matrix.  The factored form of A is then used to solve the system of
 
47
*> equations A * X = B.
 
48
*> \endverbatim
 
49
*
 
50
*  Arguments:
 
51
*  ==========
 
52
*
 
53
*> \param[in] UPLO
 
54
*> \verbatim
 
55
*>          UPLO is CHARACTER*1
 
56
*>          = 'U':  Upper triangle of A is stored;
 
57
*>          = 'L':  Lower triangle of A is stored.
 
58
*> \endverbatim
 
59
*>
 
60
*> \param[in] N
 
61
*> \verbatim
 
62
*>          N is INTEGER
 
63
*>          The number of linear equations, i.e., the order of the
 
64
*>          matrix A.  N >= 0.
 
65
*> \endverbatim
 
66
*>
 
67
*> \param[in] NRHS
 
68
*> \verbatim
 
69
*>          NRHS is INTEGER
 
70
*>          The number of right hand sides, i.e., the number of columns
 
71
*>          of the matrix B.  NRHS >= 0.
 
72
*> \endverbatim
 
73
*>
 
74
*> \param[in,out] A
 
75
*> \verbatim
 
76
*>          A is DOUBLE PRECISION array, dimension (LDA,N)
 
77
*>          On entry, the symmetric matrix A.  If UPLO = 'U', the leading
 
78
*>          N-by-N upper triangular part of A contains the upper
 
79
*>          triangular part of the matrix A, and the strictly lower
 
80
*>          triangular part of A is not referenced.  If UPLO = 'L', the
 
81
*>          leading N-by-N lower triangular part of A contains the lower
 
82
*>          triangular part of the matrix A, and the strictly upper
 
83
*>          triangular part of A is not referenced.
 
84
*>
 
85
*>          On exit, if INFO = 0, the factor U or L from the Cholesky
 
86
*>          factorization A = U**T*U or A = L*L**T.
 
87
*> \endverbatim
 
88
*>
 
89
*> \param[in] LDA
 
90
*> \verbatim
 
91
*>          LDA is INTEGER
 
92
*>          The leading dimension of the array A.  LDA >= max(1,N).
 
93
*> \endverbatim
 
94
*>
 
95
*> \param[in,out] B
 
96
*> \verbatim
 
97
*>          B is DOUBLE PRECISION array, dimension (LDB,NRHS)
 
98
*>          On entry, the N-by-NRHS right hand side matrix B.
 
99
*>          On exit, if INFO = 0, the N-by-NRHS solution matrix X.
 
100
*> \endverbatim
 
101
*>
 
102
*> \param[in] LDB
 
103
*> \verbatim
 
104
*>          LDB is INTEGER
 
105
*>          The leading dimension of the array B.  LDB >= max(1,N).
 
106
*> \endverbatim
 
107
*>
 
108
*> \param[out] INFO
 
109
*> \verbatim
 
110
*>          INFO is INTEGER
 
111
*>          = 0:  successful exit
 
112
*>          < 0:  if INFO = -i, the i-th argument had an illegal value
 
113
*>          > 0:  if INFO = i, the leading minor of order i of A is not
 
114
*>                positive definite, so the factorization could not be
 
115
*>                completed, and the solution has not been computed.
 
116
*> \endverbatim
 
117
*
 
118
*  Authors:
 
119
*  ========
 
120
*
 
121
*> \author Univ. of Tennessee 
 
122
*> \author Univ. of California Berkeley 
 
123
*> \author Univ. of Colorado Denver 
 
124
*> \author NAG Ltd. 
 
125
*
 
126
*> \date November 2011
 
127
*
 
128
*> \ingroup doublePOsolve
 
129
*
 
130
*  =====================================================================
5
131
      SUBROUTINE DPOSV( UPLO, N, NRHS, A, LDA, B, LDB, INFO )
6
132
*
7
 
*  -- LAPACK driver routine (version 2.0) --
8
 
*     Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
9
 
*     Courant Institute, Argonne National Lab, and Rice University
10
 
*     March 31, 1993
 
133
*  -- LAPACK driver routine (version 3.4.0) --
 
134
*  -- LAPACK is a software package provided by Univ. of Tennessee,    --
 
135
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 
136
*     November 2011
11
137
*
12
138
*     .. Scalar Arguments ..
13
139
      CHARACTER          UPLO
17
143
      DOUBLE PRECISION   A( LDA, * ), B( LDB, * )
18
144
*     ..
19
145
*
20
 
*  Purpose
21
 
*  =======
22
 
*
23
 
*  DPOSV computes the solution to a real system of linear equations
24
 
*     A * X = B,
25
 
*  where A is an N-by-N symmetric positive definite matrix and X and B
26
 
*  are N-by-NRHS matrices.
27
 
*
28
 
*  The Cholesky decomposition is used to factor A as
29
 
*     A = U**T* U,  if UPLO = 'U', or
30
 
*     A = L * L**T,  if UPLO = 'L',
31
 
*  where U is an upper triangular matrix and L is a lower triangular
32
 
*  matrix.  The factored form of A is then used to solve the system of
33
 
*  equations A * X = B.
34
 
*
35
 
*  Arguments
36
 
*  =========
37
 
*
38
 
*  UPLO    (input) CHARACTER*1
39
 
*          = 'U':  Upper triangle of A is stored;
40
 
*          = 'L':  Lower triangle of A is stored.
41
 
*
42
 
*  N       (input) INTEGER
43
 
*          The number of linear equations, i.e., the order of the
44
 
*          matrix A.  N >= 0.
45
 
*
46
 
*  NRHS    (input) INTEGER
47
 
*          The number of right hand sides, i.e., the number of columns
48
 
*          of the matrix B.  NRHS >= 0.
49
 
*
50
 
*  A       (input/output) DOUBLE PRECISION array, dimension (LDA,N)
51
 
*          On entry, the symmetric matrix A.  If UPLO = 'U', the leading
52
 
*          N-by-N upper triangular part of A contains the upper
53
 
*          triangular part of the matrix A, and the strictly lower
54
 
*          triangular part of A is not referenced.  If UPLO = 'L', the
55
 
*          leading N-by-N lower triangular part of A contains the lower
56
 
*          triangular part of the matrix A, and the strictly upper
57
 
*          triangular part of A is not referenced.
58
 
*
59
 
*          On exit, if INFO = 0, the factor U or L from the Cholesky
60
 
*          factorization A = U**T*U or A = L*L**T.
61
 
*
62
 
*  LDA     (input) INTEGER
63
 
*          The leading dimension of the array A.  LDA >= max(1,N).
64
 
*
65
 
*  B       (input/output) DOUBLE PRECISION array, dimension (LDB,NRHS)
66
 
*          On entry, the N-by-NRHS right hand side matrix B.
67
 
*          On exit, if INFO = 0, the N-by-NRHS solution matrix X.
68
 
*
69
 
*  LDB     (input) INTEGER
70
 
*          The leading dimension of the array B.  LDB >= max(1,N).
71
 
*
72
 
*  INFO    (output) INTEGER
73
 
*          = 0:  successful exit
74
 
*          < 0:  if INFO = -i, the i-th argument had an illegal value
75
 
*          > 0:  if INFO = i, the leading minor of order i of A is not
76
 
*                positive definite, so the factorization could not be
77
 
*                completed, and the solution has not been computed.
78
 
*
79
146
*  =====================================================================
80
147
*
81
148
*     .. External Functions ..
109
176
         RETURN
110
177
      END IF
111
178
*
112
 
*     Compute the Cholesky factorization A = U'*U or A = L*L'.
 
179
*     Compute the Cholesky factorization A = U**T*U or A = L*L**T.
113
180
*
114
181
      CALL DPOTRF( UPLO, N, A, LDA, INFO )
115
182
      IF( INFO.EQ.0 ) THEN