LAPACK  3.6.1
LAPACK: Linear Algebra PACKage
derrtz.f
Go to the documentation of this file.
1 *> \brief \b DERRTZ
2 *
3 * =========== DOCUMENTATION ===========
4 *
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
7 *
8 * Definition:
9 * ===========
10 *
11 * SUBROUTINE DERRTZ( PATH, NUNIT )
12 *
13 * .. Scalar Arguments ..
14 * CHARACTER*3 PATH
15 * INTEGER NUNIT
16 * ..
17 *
18 *
19 *> \par Purpose:
20 * =============
21 *>
22 *> \verbatim
23 *>
24 *> DERRTZ tests the error exits for STZRZF.
25 *> \endverbatim
26 *
27 * Arguments:
28 * ==========
29 *
30 *> \param[in] PATH
31 *> \verbatim
32 *> PATH is CHARACTER*3
33 *> The LAPACK path name for the routines to be tested.
34 *> \endverbatim
35 *>
36 *> \param[in] NUNIT
37 *> \verbatim
38 *> NUNIT is INTEGER
39 *> The unit number for output.
40 *> \endverbatim
41 *
42 * Authors:
43 * ========
44 *
45 *> \author Univ. of Tennessee
46 *> \author Univ. of California Berkeley
47 *> \author Univ. of Colorado Denver
48 *> \author NAG Ltd.
49 *
50 *> \date November 2015
51 *
52 *> \ingroup double_lin
53 *
54 * =====================================================================
55  SUBROUTINE derrtz( PATH, NUNIT )
56 *
57 * -- LAPACK test routine (version 3.6.0) --
58 * -- LAPACK is a software package provided by Univ. of Tennessee, --
59 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
60 * November 2015
61 *
62 * .. Scalar Arguments ..
63  CHARACTER*3 PATH
64  INTEGER NUNIT
65 * ..
66 *
67 * =====================================================================
68 *
69 * .. Parameters ..
70  INTEGER NMAX
71  parameter ( nmax = 2 )
72 * ..
73 * .. Local Scalars ..
74  CHARACTER*2 C2
75  INTEGER INFO
76 * ..
77 * .. Local Arrays ..
78  DOUBLE PRECISION A( nmax, nmax ), TAU( nmax ), W( nmax )
79 * ..
80 * .. External Functions ..
81  LOGICAL LSAMEN
82  EXTERNAL lsamen
83 * ..
84 * .. External Subroutines ..
85  EXTERNAL alaesm, chkxer, dtzrzf
86 * ..
87 * .. Scalars in Common ..
88  LOGICAL LERR, OK
89  CHARACTER*32 SRNAMT
90  INTEGER INFOT, NOUT
91 * ..
92 * .. Common blocks ..
93  COMMON / infoc / infot, nout, ok, lerr
94  COMMON / srnamc / srnamt
95 * ..
96 * .. Executable Statements ..
97 *
98  nout = nunit
99  WRITE( nout, fmt = * )
100  c2 = path( 2: 3 )
101  a( 1, 1 ) = 1.d+0
102  a( 1, 2 ) = 2.d+0
103  a( 2, 2 ) = 3.d+0
104  a( 2, 1 ) = 4.d+0
105  w( 1 ) = 0.0d+0
106  w( 2 ) = 0.0d+0
107  ok = .true.
108 *
109  IF( lsamen( 2, c2, 'TZ' ) ) THEN
110 *
111 * Test error exits for the trapezoidal routines.
112 *
113 * DTZRZF
114 *
115  srnamt = 'DTZRZF'
116  infot = 1
117  CALL dtzrzf( -1, 0, a, 1, tau, w, 1, info )
118  CALL chkxer( 'DTZRZF', infot, nout, lerr, ok )
119  infot = 2
120  CALL dtzrzf( 1, 0, a, 1, tau, w, 1, info )
121  CALL chkxer( 'DTZRZF', infot, nout, lerr, ok )
122  infot = 4
123  CALL dtzrzf( 2, 2, a, 1, tau, w, 1, info )
124  CALL chkxer( 'DTZRZF', infot, nout, lerr, ok )
125  infot = 7
126  CALL dtzrzf( 2, 2, a, 2, tau, w, 0, info )
127  CALL chkxer( 'DTZRZF', infot, nout, lerr, ok )
128  infot = 7
129  CALL dtzrzf( 2, 3, a, 2, tau, w, 1, info )
130  CALL chkxer( 'DTZRZF', infot, nout, lerr, ok )
131  END IF
132 *
133 * Print a summary line.
134 *
135  CALL alaesm( path, ok, nout )
136 *
137  RETURN
138 *
139 * End of DERRTZ
140 *
141  END
subroutine derrtz(PATH, NUNIT)
DERRTZ
Definition: derrtz.f:56
subroutine dtzrzf(M, N, A, LDA, TAU, WORK, LWORK, INFO)
DTZRZF
Definition: dtzrzf.f:153
subroutine alaesm(PATH, OK, NOUT)
ALAESM
Definition: alaesm.f:65
subroutine chkxer(SRNAMT, INFOT, NOUT, LERR, OK)
Definition: cblat2.f:3199