~ubuntu-branches/ubuntu/utopic/nwchem/utopic

« back to all changes in this revision

Viewing changes to src/lapack/single/sgeqr2.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 SGEQR2 computes the QR factorization of a general rectangular matrix using an unblocked algorithm.
 
2
*
 
3
*  =========== DOCUMENTATION ===========
 
4
*
 
5
* Online html documentation available at 
 
6
*            http://www.netlib.org/lapack/explore-html/ 
 
7
*
 
8
*> \htmlonly
 
9
*> Download SGEQR2 + dependencies 
 
10
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/sgeqr2.f"> 
 
11
*> [TGZ]</a> 
 
12
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/sgeqr2.f"> 
 
13
*> [ZIP]</a> 
 
14
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/sgeqr2.f"> 
 
15
*> [TXT]</a>
 
16
*> \endhtmlonly 
 
17
*
 
18
*  Definition:
 
19
*  ===========
 
20
*
 
21
*       SUBROUTINE SGEQR2( M, N, A, LDA, TAU, WORK, INFO )
 
22
 
23
*       .. Scalar Arguments ..
 
24
*       INTEGER            INFO, LDA, M, N
 
25
*       ..
 
26
*       .. Array Arguments ..
 
27
*       REAL               A( LDA, * ), TAU( * ), WORK( * )
 
28
*       ..
 
29
*  
 
30
*
 
31
*> \par Purpose:
 
32
*  =============
 
33
*>
 
34
*> \verbatim
 
35
*>
 
36
*> SGEQR2 computes a QR factorization of a real m by n matrix A:
 
37
*> A = Q * R.
 
38
*> \endverbatim
 
39
*
 
40
*  Arguments:
 
41
*  ==========
 
42
*
 
43
*> \param[in] M
 
44
*> \verbatim
 
45
*>          M is INTEGER
 
46
*>          The number of rows of the matrix A.  M >= 0.
 
47
*> \endverbatim
 
48
*>
 
49
*> \param[in] N
 
50
*> \verbatim
 
51
*>          N is INTEGER
 
52
*>          The number of columns of the matrix A.  N >= 0.
 
53
*> \endverbatim
 
54
*>
 
55
*> \param[in,out] A
 
56
*> \verbatim
 
57
*>          A is REAL array, dimension (LDA,N)
 
58
*>          On entry, the m by n matrix A.
 
59
*>          On exit, the elements on and above the diagonal of the array
 
60
*>          contain the min(m,n) by n upper trapezoidal matrix R (R is
 
61
*>          upper triangular if m >= n); the elements below the diagonal,
 
62
*>          with the array TAU, represent the orthogonal matrix Q as a
 
63
*>          product of elementary reflectors (see Further Details).
 
64
*> \endverbatim
 
65
*>
 
66
*> \param[in] LDA
 
67
*> \verbatim
 
68
*>          LDA is INTEGER
 
69
*>          The leading dimension of the array A.  LDA >= max(1,M).
 
70
*> \endverbatim
 
71
*>
 
72
*> \param[out] TAU
 
73
*> \verbatim
 
74
*>          TAU is REAL array, dimension (min(M,N))
 
75
*>          The scalar factors of the elementary reflectors (see Further
 
76
*>          Details).
 
77
*> \endverbatim
 
78
*>
 
79
*> \param[out] WORK
 
80
*> \verbatim
 
81
*>          WORK is REAL array, dimension (N)
 
82
*> \endverbatim
 
83
*>
 
84
*> \param[out] INFO
 
85
*> \verbatim
 
86
*>          INFO is INTEGER
 
87
*>          = 0: successful exit
 
88
*>          < 0: if INFO = -i, the i-th argument had an illegal value
 
89
*> \endverbatim
 
90
*
 
91
*  Authors:
 
92
*  ========
 
93
*
 
94
*> \author Univ. of Tennessee 
 
95
*> \author Univ. of California Berkeley 
 
96
*> \author Univ. of Colorado Denver 
 
97
*> \author NAG Ltd. 
 
98
*
 
99
*> \date September 2012
 
100
*
 
101
*> \ingroup realGEcomputational
 
102
*
 
103
*> \par Further Details:
 
104
*  =====================
 
105
*>
 
106
*> \verbatim
 
107
*>
 
108
*>  The matrix Q is represented as a product of elementary reflectors
 
109
*>
 
110
*>     Q = H(1) H(2) . . . H(k), where k = min(m,n).
 
111
*>
 
112
*>  Each H(i) has the form
 
113
*>
 
114
*>     H(i) = I - tau * v * v**T
 
115
*>
 
116
*>  where tau is a real scalar, and v is a real vector with
 
117
*>  v(1:i-1) = 0 and v(i) = 1; v(i+1:m) is stored on exit in A(i+1:m,i),
 
118
*>  and tau in TAU(i).
 
119
*> \endverbatim
 
120
*>
 
121
*  =====================================================================
1
122
      SUBROUTINE SGEQR2( M, N, A, LDA, TAU, WORK, INFO )
2
123
*
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
 
*     February 29, 1992
 
124
*  -- LAPACK computational routine (version 3.4.2) --
 
125
*  -- LAPACK is a software package provided by Univ. of Tennessee,    --
 
126
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 
127
*     September 2012
7
128
*
8
129
*     .. Scalar Arguments ..
9
130
      INTEGER            INFO, LDA, M, N
12
133
      REAL               A( LDA, * ), TAU( * ), WORK( * )
13
134
*     ..
14
135
*
15
 
c
16
 
* $Id: sgeqr2.f 19697 2010-10-29 16:57:34Z d3y133 $
17
 
c
18
 
*  Purpose
19
 
*  =======
20
 
*
21
 
*  SGEQR2 computes a QR factorization of a real m by n matrix A:
22
 
*  A = Q * R.
23
 
*
24
 
*  Arguments
25
 
*  =========
26
 
*
27
 
*  M       (input) INTEGER
28
 
*          The number of rows of the matrix A.  M >= 0.
29
 
*
30
 
*  N       (input) INTEGER
31
 
*          The number of columns of the matrix A.  N >= 0.
32
 
*
33
 
*  A       (input/output) REAL array, dimension (LDA,N)
34
 
*          On entry, the m by n matrix A.
35
 
*          On exit, the elements on and above the diagonal of the array
36
 
*          contain the min(m,n) by n upper trapezoidal matrix R (R is
37
 
*          upper triangular if m >= n); the elements below the diagonal,
38
 
*          with the array TAU, represent the orthogonal matrix Q as a
39
 
*          product of elementary reflectors (see Further Details).
40
 
*
41
 
*  LDA     (input) INTEGER
42
 
*          The leading dimension of the array A.  LDA >= max(1,M).
43
 
*
44
 
*  TAU     (output) REAL array, dimension (min(M,N))
45
 
*          The scalar factors of the elementary reflectors (see Further
46
 
*          Details).
47
 
*
48
 
*  WORK    (workspace) REAL array, dimension (N)
49
 
*
50
 
*  INFO    (output) INTEGER
51
 
*          = 0: successful exit
52
 
*          < 0: if INFO = -i, the i-th argument had an illegal value
53
 
*
54
 
*  Further Details
55
 
*  ===============
56
 
*
57
 
*  The matrix Q is represented as a product of elementary reflectors
58
 
*
59
 
*     Q = H(1) H(2) . . . H(k), where k = min(m,n).
60
 
*
61
 
*  Each H(i) has the form
62
 
*
63
 
*     H(i) = I - tau * v * v'
64
 
*
65
 
*  where tau is a real scalar, and v is a real vector with
66
 
*  v(1:i-1) = 0 and v(i) = 1; v(i+1:m) is stored on exit in A(i+1:m,i),
67
 
*  and tau in TAU(i).
68
 
*
69
136
*  =====================================================================
70
137
*
71
138
*     .. Parameters ..