zerrtz.c
Go to the documentation of this file.
00001 /* zerrtz.f -- translated by f2c (version 20061008).
00002    You must link the resulting object file with libf2c:
00003         on Microsoft Windows system, link with libf2c.lib;
00004         on Linux or Unix systems, link with .../path/to/libf2c.a -lm
00005         or, if you install libf2c.a in a standard place, with -lf2c -lm
00006         -- in that order, at the end of the command line, as in
00007                 cc *.o -lf2c -lm
00008         Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
00009 
00010                 http://www.netlib.org/f2c/libf2c.zip
00011 */
00012 
00013 #include "f2c.h"
00014 #include "blaswrap.h"
00015 
00016 /* Common Block Declarations */
00017 
00018 struct {
00019     integer infot, nout;
00020     logical ok, lerr;
00021 } infoc_;
00022 
00023 #define infoc_1 infoc_
00024 
00025 struct {
00026     char srnamt[32];
00027 } srnamc_;
00028 
00029 #define srnamc_1 srnamc_
00030 
00031 /* Table of constant values */
00032 
00033 static integer c__2 = 2;
00034 static integer c_n1 = -1;
00035 static integer c__0 = 0;
00036 static integer c__1 = 1;
00037 
00038 /* Subroutine */ int zerrtz_(char *path, integer *nunit)
00039 {
00040     /* Builtin functions */
00041     /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
00042     integer s_wsle(cilist *), e_wsle(void);
00043 
00044     /* Local variables */
00045     doublecomplex a[4]  /* was [2][2] */, w[2];
00046     char c2[2];
00047     doublecomplex tau[2];
00048     integer info;
00049     extern /* Subroutine */ int alaesm_(char *, logical *, integer *);
00050     extern logical lsamen_(integer *, char *, char *);
00051     extern /* Subroutine */ int chkxer_(char *, integer *, integer *, logical 
00052             *, logical *), ztzrqf_(integer *, integer *, 
00053             doublecomplex *, integer *, doublecomplex *, integer *), ztzrzf_(
00054             integer *, integer *, doublecomplex *, integer *, doublecomplex *, 
00055              doublecomplex *, integer *, integer *);
00056 
00057     /* Fortran I/O blocks */
00058     static cilist io___4 = { 0, 0, 0, 0, 0 };
00059 
00060 
00061 
00062 /*  -- LAPACK test routine (version 3.1) -- */
00063 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00064 /*     November 2006 */
00065 
00066 /*     .. Scalar Arguments .. */
00067 /*     .. */
00068 
00069 /*  Purpose */
00070 /*  ======= */
00071 
00072 /*  ZERRTZ tests the error exits for ZTZRQF and ZTZRZF. */
00073 
00074 /*  Arguments */
00075 /*  ========= */
00076 
00077 /*  PATH    (input) CHARACTER*3 */
00078 /*          The LAPACK path name for the routines to be tested. */
00079 
00080 /*  NUNIT   (input) INTEGER */
00081 /*          The unit number for output. */
00082 
00083 /*  ===================================================================== */
00084 
00085 /*     .. Parameters .. */
00086 /*     .. */
00087 /*     .. Local Scalars .. */
00088 /*     .. */
00089 /*     .. Local Arrays .. */
00090 /*     .. */
00091 /*     .. External Functions .. */
00092 /*     .. */
00093 /*     .. External Subroutines .. */
00094 /*     .. */
00095 /*     .. Scalars in Common .. */
00096 /*     .. */
00097 /*     .. Common blocks .. */
00098 /*     .. */
00099 /*     .. Intrinsic Functions .. */
00100 /*     .. */
00101 /*     .. Executable Statements .. */
00102 
00103     infoc_1.nout = *nunit;
00104     s_copy(c2, path + 1, (ftnlen)2, (ftnlen)2);
00105     a[0].r = 1., a[0].i = -1.;
00106     a[2].r = 2., a[2].i = -2.;
00107     a[3].r = 3., a[3].i = -3.;
00108     a[1].r = 4., a[1].i = -4.;
00109     w[0].r = 0., w[0].i = 0.;
00110     w[1].r = 0., w[1].i = 0.;
00111     infoc_1.ok = TRUE_;
00112 
00113 /*     Test error exits for the trapezoidal routines. */
00114 
00115     io___4.ciunit = infoc_1.nout;
00116     s_wsle(&io___4);
00117     e_wsle();
00118     if (lsamen_(&c__2, c2, "TZ")) {
00119 
00120 /*        ZTZRQF */
00121 
00122         s_copy(srnamc_1.srnamt, "ZTZRQF", (ftnlen)32, (ftnlen)6);
00123         infoc_1.infot = 1;
00124         ztzrqf_(&c_n1, &c__0, a, &c__1, tau, &info);
00125         chkxer_("ZTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00126                 infoc_1.ok);
00127         infoc_1.infot = 2;
00128         ztzrqf_(&c__1, &c__0, a, &c__1, tau, &info);
00129         chkxer_("ZTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00130                 infoc_1.ok);
00131         infoc_1.infot = 4;
00132         ztzrqf_(&c__2, &c__2, a, &c__1, tau, &info);
00133         chkxer_("ZTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00134                 infoc_1.ok);
00135 
00136 /*        ZTZRZF */
00137 
00138         s_copy(srnamc_1.srnamt, "ZTZRZF", (ftnlen)32, (ftnlen)6);
00139         infoc_1.infot = 1;
00140         ztzrzf_(&c_n1, &c__0, a, &c__1, tau, w, &c__1, &info);
00141         chkxer_("ZTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00142                 infoc_1.ok);
00143         infoc_1.infot = 2;
00144         ztzrzf_(&c__1, &c__0, a, &c__1, tau, w, &c__1, &info);
00145         chkxer_("ZTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00146                 infoc_1.ok);
00147         infoc_1.infot = 4;
00148         ztzrzf_(&c__2, &c__2, a, &c__1, tau, w, &c__1, &info);
00149         chkxer_("ZTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00150                 infoc_1.ok);
00151         infoc_1.infot = 7;
00152         ztzrzf_(&c__2, &c__2, a, &c__2, tau, w, &c__1, &info);
00153         chkxer_("ZTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00154                 infoc_1.ok);
00155     }
00156 
00157 /*     Print a summary line. */
00158 
00159     alaesm_(path, &infoc_1.ok, &infoc_1.nout);
00160 
00161     return 0;
00162 
00163 /*     End of ZERRTZ */
00164 
00165 } /* zerrtz_ */


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:56:29