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

« back to all changes in this revision

Viewing changes to src/lapack/single/sorghr.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 SORGHR
 
2
*
 
3
*  =========== DOCUMENTATION ===========
 
4
*
 
5
* Online html documentation available at 
 
6
*            http://www.netlib.org/lapack/explore-html/ 
 
7
*
 
8
*> \htmlonly
 
9
*> Download SORGHR + dependencies 
 
10
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/sorghr.f"> 
 
11
*> [TGZ]</a> 
 
12
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/sorghr.f"> 
 
13
*> [ZIP]</a> 
 
14
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/sorghr.f"> 
 
15
*> [TXT]</a>
 
16
*> \endhtmlonly 
 
17
*
 
18
*  Definition:
 
19
*  ===========
 
20
*
 
21
*       SUBROUTINE SORGHR( N, ILO, IHI, A, LDA, TAU, WORK, LWORK, INFO )
 
22
 
23
*       .. Scalar Arguments ..
 
24
*       INTEGER            IHI, ILO, INFO, LDA, LWORK, N
 
25
*       ..
 
26
*       .. Array Arguments ..
 
27
*       REAL               A( LDA, * ), TAU( * ), WORK( * )
 
28
*       ..
 
29
*  
 
30
*
 
31
*> \par Purpose:
 
32
*  =============
 
33
*>
 
34
*> \verbatim
 
35
*>
 
36
*> SORGHR generates a real orthogonal matrix Q which is defined as the
 
37
*> product of IHI-ILO elementary reflectors of order N, as returned by
 
38
*> SGEHRD:
 
39
*>
 
40
*> Q = H(ilo) H(ilo+1) . . . H(ihi-1).
 
41
*> \endverbatim
 
42
*
 
43
*  Arguments:
 
44
*  ==========
 
45
*
 
46
*> \param[in] N
 
47
*> \verbatim
 
48
*>          N is INTEGER
 
49
*>          The order of the matrix Q. N >= 0.
 
50
*> \endverbatim
 
51
*>
 
52
*> \param[in] ILO
 
53
*> \verbatim
 
54
*>          ILO is INTEGER
 
55
*> \endverbatim
 
56
*>
 
57
*> \param[in] IHI
 
58
*> \verbatim
 
59
*>          IHI is INTEGER
 
60
*>
 
61
*>          ILO and IHI must have the same values as in the previous call
 
62
*>          of SGEHRD. Q is equal to the unit matrix except in the
 
63
*>          submatrix Q(ilo+1:ihi,ilo+1:ihi).
 
64
*>          1 <= ILO <= IHI <= N, if N > 0; ILO=1 and IHI=0, if N=0.
 
65
*> \endverbatim
 
66
*>
 
67
*> \param[in,out] A
 
68
*> \verbatim
 
69
*>          A is REAL array, dimension (LDA,N)
 
70
*>          On entry, the vectors which define the elementary reflectors,
 
71
*>          as returned by SGEHRD.
 
72
*>          On exit, the N-by-N orthogonal matrix Q.
 
73
*> \endverbatim
 
74
*>
 
75
*> \param[in] LDA
 
76
*> \verbatim
 
77
*>          LDA is INTEGER
 
78
*>          The leading dimension of the array A. LDA >= max(1,N).
 
79
*> \endverbatim
 
80
*>
 
81
*> \param[in] TAU
 
82
*> \verbatim
 
83
*>          TAU is REAL array, dimension (N-1)
 
84
*>          TAU(i) must contain the scalar factor of the elementary
 
85
*>          reflector H(i), as returned by SGEHRD.
 
86
*> \endverbatim
 
87
*>
 
88
*> \param[out] WORK
 
89
*> \verbatim
 
90
*>          WORK is REAL array, dimension (MAX(1,LWORK))
 
91
*>          On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
 
92
*> \endverbatim
 
93
*>
 
94
*> \param[in] LWORK
 
95
*> \verbatim
 
96
*>          LWORK is INTEGER
 
97
*>          The dimension of the array WORK. LWORK >= IHI-ILO.
 
98
*>          For optimum performance LWORK >= (IHI-ILO)*NB, where NB is
 
99
*>          the optimal blocksize.
 
100
*>
 
101
*>          If LWORK = -1, then a workspace query is assumed; the routine
 
102
*>          only calculates the optimal size of the WORK array, returns
 
103
*>          this value as the first entry of the WORK array, and no error
 
104
*>          message related to LWORK is issued by XERBLA.
 
105
*> \endverbatim
 
106
*>
 
107
*> \param[out] INFO
 
108
*> \verbatim
 
109
*>          INFO is INTEGER
 
110
*>          = 0:  successful exit
 
111
*>          < 0:  if INFO = -i, the i-th argument had an illegal value
 
112
*> \endverbatim
 
113
*
 
114
*  Authors:
 
115
*  ========
 
116
*
 
117
*> \author Univ. of Tennessee 
 
118
*> \author Univ. of California Berkeley 
 
119
*> \author Univ. of Colorado Denver 
 
120
*> \author NAG Ltd. 
 
121
*
 
122
*> \date November 2011
 
123
*
 
124
*> \ingroup realOTHERcomputational
 
125
*
 
126
*  =====================================================================
1
127
      SUBROUTINE SORGHR( N, ILO, IHI, A, LDA, TAU, WORK, LWORK, INFO )
2
 
C$Id: sorghr.f 19697 2010-10-29 16:57:34Z d3y133 $
3
128
*
4
 
*  -- LAPACK routine (version 3.0) --
5
 
*     Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
6
 
*     Courant Institute, Argonne National Lab, and Rice University
7
 
*     June 30, 1999
 
129
*  -- LAPACK computational routine (version 3.4.0) --
 
130
*  -- LAPACK is a software package provided by Univ. of Tennessee,    --
 
131
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 
132
*     November 2011
8
133
*
9
134
*     .. Scalar Arguments ..
10
135
      INTEGER            IHI, ILO, INFO, LDA, LWORK, N
13
138
      REAL               A( LDA, * ), TAU( * ), WORK( * )
14
139
*     ..
15
140
*
16
 
*  Purpose
17
 
*  =======
18
 
*
19
 
*  SORGHR generates a real orthogonal matrix Q which is defined as the
20
 
*  product of IHI-ILO elementary reflectors of order N, as returned by
21
 
*  SGEHRD:
22
 
*
23
 
*  Q = H(ilo) H(ilo+1) . . . H(ihi-1).
24
 
*
25
 
*  Arguments
26
 
*  =========
27
 
*
28
 
*  N       (input) INTEGER
29
 
*          The order of the matrix Q. N >= 0.
30
 
*
31
 
*  ILO     (input) INTEGER
32
 
*  IHI     (input) INTEGER
33
 
*          ILO and IHI must have the same values as in the previous call
34
 
*          of SGEHRD. Q is equal to the unit matrix except in the
35
 
*          submatrix Q(ilo+1:ihi,ilo+1:ihi).
36
 
*          1 <= ILO <= IHI <= N, if N > 0; ILO=1 and IHI=0, if N=0.
37
 
*
38
 
*  A       (input/output) REAL array, dimension (LDA,N)
39
 
*          On entry, the vectors which define the elementary reflectors,
40
 
*          as returned by SGEHRD.
41
 
*          On exit, the N-by-N orthogonal matrix Q.
42
 
*
43
 
*  LDA     (input) INTEGER
44
 
*          The leading dimension of the array A. LDA >= max(1,N).
45
 
*
46
 
*  TAU     (input) REAL array, dimension (N-1)
47
 
*          TAU(i) must contain the scalar factor of the elementary
48
 
*          reflector H(i), as returned by SGEHRD.
49
 
*
50
 
*  WORK    (workspace/output) REAL array, dimension (LWORK)
51
 
*          On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
52
 
*
53
 
*  LWORK   (input) INTEGER
54
 
*          The dimension of the array WORK. LWORK >= IHI-ILO.
55
 
*          For optimum performance LWORK >= (IHI-ILO)*NB, where NB is
56
 
*          the optimal blocksize.
57
 
*
58
 
*          If LWORK = -1, then a workspace query is assumed; the routine
59
 
*          only calculates the optimal size of the WORK array, returns
60
 
*          this value as the first entry of the WORK array, and no error
61
 
*          message related to LWORK is issued by XERBLA.
62
 
*
63
 
*  INFO    (output) INTEGER
64
 
*          = 0:  successful exit
65
 
*          < 0:  if INFO = -i, the i-th argument had an illegal value
66
 
*
67
141
*  =====================================================================
68
142
*
69
143
*     .. Parameters ..
82
156
      EXTERNAL           ILAENV 
83
157
*     ..
84
158
*     .. Intrinsic Functions ..
85
 
      INTRINSIC          MAX
 
159
      INTRINSIC          MAX, MIN
86
160
*     ..
87
161
*     .. Executable Statements ..
88
162
*