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

« back to all changes in this revision

Viewing changes to src/lapack/single/slacon.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 SLACON estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vector products.
 
2
*
 
3
*  =========== DOCUMENTATION ===========
 
4
*
 
5
* Online html documentation available at 
 
6
*            http://www.netlib.org/lapack/explore-html/ 
 
7
*
 
8
*> \htmlonly
 
9
*> Download SLACON + dependencies 
 
10
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/slacon.f"> 
 
11
*> [TGZ]</a> 
 
12
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/slacon.f"> 
 
13
*> [ZIP]</a> 
 
14
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/slacon.f"> 
 
15
*> [TXT]</a>
 
16
*> \endhtmlonly 
 
17
*
 
18
*  Definition:
 
19
*  ===========
 
20
*
 
21
*       SUBROUTINE SLACON( N, V, X, ISGN, EST, KASE )
 
22
 
23
*       .. Scalar Arguments ..
 
24
*       INTEGER            KASE, N
 
25
*       REAL               EST
 
26
*       ..
 
27
*       .. Array Arguments ..
 
28
*       INTEGER            ISGN( * )
 
29
*       REAL               V( * ), X( * )
 
30
*       ..
 
31
*  
 
32
*
 
33
*> \par Purpose:
 
34
*  =============
 
35
*>
 
36
*> \verbatim
 
37
*>
 
38
*> SLACON estimates the 1-norm of a square, real matrix A.
 
39
*> Reverse communication is used for evaluating matrix-vector products.
 
40
*> \endverbatim
 
41
*
 
42
*  Arguments:
 
43
*  ==========
 
44
*
 
45
*> \param[in] N
 
46
*> \verbatim
 
47
*>          N is INTEGER
 
48
*>         The order of the matrix.  N >= 1.
 
49
*> \endverbatim
 
50
*>
 
51
*> \param[out] V
 
52
*> \verbatim
 
53
*>          V is REAL array, dimension (N)
 
54
*>         On the final return, V = A*W,  where  EST = norm(V)/norm(W)
 
55
*>         (W is not returned).
 
56
*> \endverbatim
 
57
*>
 
58
*> \param[in,out] X
 
59
*> \verbatim
 
60
*>          X is REAL array, dimension (N)
 
61
*>         On an intermediate return, X should be overwritten by
 
62
*>               A * X,   if KASE=1,
 
63
*>               A**T * X,  if KASE=2,
 
64
*>         and SLACON must be re-called with all the other parameters
 
65
*>         unchanged.
 
66
*> \endverbatim
 
67
*>
 
68
*> \param[out] ISGN
 
69
*> \verbatim
 
70
*>          ISGN is INTEGER array, dimension (N)
 
71
*> \endverbatim
 
72
*>
 
73
*> \param[in,out] EST
 
74
*> \verbatim
 
75
*>          EST is REAL
 
76
*>         On entry with KASE = 1 or 2 and JUMP = 3, EST should be
 
77
*>         unchanged from the previous call to SLACON.
 
78
*>         On exit, EST is an estimate (a lower bound) for norm(A). 
 
79
*> \endverbatim
 
80
*>
 
81
*> \param[in,out] KASE
 
82
*> \verbatim
 
83
*>          KASE is INTEGER
 
84
*>         On the initial call to SLACON, KASE should be 0.
 
85
*>         On an intermediate return, KASE will be 1 or 2, indicating
 
86
*>         whether X should be overwritten by A * X  or A**T * X.
 
87
*>         On the final return from SLACON, KASE will again be 0.
 
88
*> \endverbatim
 
89
*
 
90
*  Authors:
 
91
*  ========
 
92
*
 
93
*> \author Univ. of Tennessee 
 
94
*> \author Univ. of California Berkeley 
 
95
*> \author Univ. of Colorado Denver 
 
96
*> \author NAG Ltd. 
 
97
*
 
98
*> \date September 2012
 
99
*
 
100
*> \ingroup realOTHERauxiliary
 
101
*
 
102
*> \par Contributors:
 
103
*  ==================
 
104
*>
 
105
*>  Nick Higham, University of Manchester. \n
 
106
*>  Originally named SONEST, dated March 16, 1988.
 
107
*
 
108
*> \par References:
 
109
*  ================
 
110
*>
 
111
*>  N.J. Higham, "FORTRAN codes for estimating the one-norm of
 
112
*>  a real or complex matrix, with applications to condition estimation",
 
113
*>  ACM Trans. Math. Soft., vol. 14, no. 4, pp. 381-396, December 1988.
 
114
*>
 
115
*  =====================================================================
1
116
      SUBROUTINE SLACON( N, V, X, ISGN, EST, KASE )
2
117
*
3
 
*  -- LAPACK auxiliary 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
 
118
*  -- LAPACK auxiliary routine (version 3.4.2) --
 
119
*  -- LAPACK is a software package provided by Univ. of Tennessee,    --
 
120
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 
121
*     September 2012
7
122
*
8
123
*     .. Scalar Arguments ..
9
124
      INTEGER            KASE, N
14
129
      REAL               V( * ), X( * )
15
130
*     ..
16
131
*
17
 
c
18
 
* $Id: slacon.f 19697 2010-10-29 16:57:34Z d3y133 $
19
 
c
20
 
*  Purpose
21
 
*  =======
22
 
*
23
 
*  SLACON estimates the 1-norm of a square, real matrix A.
24
 
*  Reverse communication is used for evaluating matrix-vector products.
25
 
*
26
 
*  Arguments
27
 
*  =========
28
 
*
29
 
*  N      (input) INTEGER
30
 
*         The order of the matrix.  N >= 1.
31
 
*
32
 
*  V      (workspace) REAL array, dimension (N)
33
 
*         On the final return, V = A*W,  where  EST = norm(V)/norm(W)
34
 
*         (W is not returned).
35
 
*
36
 
*  X      (input/output) REAL array, dimension (N)
37
 
*         On an intermediate return, X should be overwritten by
38
 
*               A * X,   if KASE=1,
39
 
*               A' * X,  if KASE=2,
40
 
*         and SLACON must be re-called with all the other parameters
41
 
*         unchanged.
42
 
*
43
 
*  ISGN   (workspace) INTEGER array, dimension (N)
44
 
*
45
 
*  EST    (output) REAL
46
 
*         An estimate (a lower bound) for norm(A).
47
 
*
48
 
*  KASE   (input/output) INTEGER
49
 
*         On the initial call to SLACON, KASE should be 0.
50
 
*         On an intermediate return, KASE will be 1 or 2, indicating
51
 
*         whether X should be overwritten by A * X  or A' * X.
52
 
*         On the final return from SLACON, KASE will again be 0.
53
 
*
54
 
*  Further Details
55
 
*  ======= =======
56
 
*
57
 
*  Contributed by Nick Higham, University of Manchester.
58
 
*  Originally named SONEST, dated March 16, 1988.
59
 
*
60
 
*  Reference: N.J. Higham, "FORTRAN codes for estimating the one-norm of
61
 
*  a real or complex matrix, with applications to condition estimation",
62
 
*  ACM Trans. Math. Soft., vol. 14, no. 4, pp. 381-396, December 1988.
63
 
*
64
132
*  =====================================================================
65
133
*
66
134
*     .. Parameters ..