cerrtz.c
Go to the documentation of this file.
00001 /* cerrtz.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 cerrtz_(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     complex a[4]        /* was [2][2] */, w[2];
00046     char c2[2];
00047     complex 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 *), ctzrqf_(integer *, integer *, complex *, 
00053             integer *, complex *, integer *), ctzrzf_(integer *, integer *, 
00054             complex *, integer *, complex *, complex *, integer *, integer *);
00055 
00056     /* Fortran I/O blocks */
00057     static cilist io___4 = { 0, 0, 0, 0, 0 };
00058 
00059 
00060 
00061 /*  -- LAPACK test routine (version 3.1) -- */
00062 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00063 /*     November 2006 */
00064 
00065 /*     .. Scalar Arguments .. */
00066 /*     .. */
00067 
00068 /*  Purpose */
00069 /*  ======= */
00070 
00071 /*  CERRTZ tests the error exits for CTZRQF and CTZRZF. */
00072 
00073 /*  Arguments */
00074 /*  ========= */
00075 
00076 /*  PATH    (input) CHARACTER*3 */
00077 /*          The LAPACK path name for the routines to be tested. */
00078 
00079 /*  NUNIT   (input) INTEGER */
00080 /*          The unit number for output. */
00081 
00082 /*  ===================================================================== */
00083 
00084 /*     .. Parameters .. */
00085 /*     .. */
00086 /*     .. Local Scalars .. */
00087 /*     .. */
00088 /*     .. Local Arrays .. */
00089 /*     .. */
00090 /*     .. External Functions .. */
00091 /*     .. */
00092 /*     .. External Subroutines .. */
00093 /*     .. */
00094 /*     .. Scalars in Common .. */
00095 /*     .. */
00096 /*     .. Common blocks .. */
00097 /*     .. */
00098 /*     .. Intrinsic Functions .. */
00099 /*     .. */
00100 /*     .. Executable Statements .. */
00101 
00102     infoc_1.nout = *nunit;
00103     s_copy(c2, path + 1, (ftnlen)2, (ftnlen)2);
00104     a[0].r = 1.f, a[0].i = -1.f;
00105     a[2].r = 2.f, a[2].i = -2.f;
00106     a[3].r = 3.f, a[3].i = -3.f;
00107     a[1].r = 4.f, a[1].i = -4.f;
00108     w[0].r = 0.f, w[0].i = 0.f;
00109     w[1].r = 0.f, w[1].i = 0.f;
00110     infoc_1.ok = TRUE_;
00111 
00112 /*     Test error exits for the trapezoidal routines. */
00113 
00114     io___4.ciunit = infoc_1.nout;
00115     s_wsle(&io___4);
00116     e_wsle();
00117     if (lsamen_(&c__2, c2, "TZ")) {
00118 
00119 /*        CTZRQF */
00120 
00121         s_copy(srnamc_1.srnamt, "CTZRQF", (ftnlen)32, (ftnlen)6);
00122         infoc_1.infot = 1;
00123         ctzrqf_(&c_n1, &c__0, a, &c__1, tau, &info);
00124         chkxer_("CTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00125                 infoc_1.ok);
00126         infoc_1.infot = 2;
00127         ctzrqf_(&c__1, &c__0, a, &c__1, tau, &info);
00128         chkxer_("CTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00129                 infoc_1.ok);
00130         infoc_1.infot = 4;
00131         ctzrqf_(&c__2, &c__2, a, &c__1, tau, &info);
00132         chkxer_("CTZRQF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00133                 infoc_1.ok);
00134 
00135 /*        CTZRZF */
00136 
00137         s_copy(srnamc_1.srnamt, "CTZRZF", (ftnlen)32, (ftnlen)6);
00138         infoc_1.infot = 1;
00139         ctzrzf_(&c_n1, &c__0, a, &c__1, tau, w, &c__1, &info);
00140         chkxer_("CTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00141                 infoc_1.ok);
00142         infoc_1.infot = 2;
00143         ctzrzf_(&c__1, &c__0, a, &c__1, tau, w, &c__1, &info);
00144         chkxer_("CTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00145                 infoc_1.ok);
00146         infoc_1.infot = 4;
00147         ctzrzf_(&c__2, &c__2, a, &c__1, tau, w, &c__1, &info);
00148         chkxer_("CTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00149                 infoc_1.ok);
00150         infoc_1.infot = 7;
00151         ctzrzf_(&c__2, &c__2, a, &c__2, tau, w, &c__1, &info);
00152         chkxer_("CTZRZF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00153                 infoc_1.ok);
00154     }
00155 
00156 /*     Print a summary line. */
00157 
00158     alaesm_(path, &infoc_1.ok, &infoc_1.nout);
00159 
00160     return 0;
00161 
00162 /*     End of CERRTZ */
00163 
00164 } /* cerrtz_ */


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:25