zerrac.c
Go to the documentation of this file.
00001 /* zerrac.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__0 = 0;
00034 static integer c__1 = 1;
00035 static integer c_n1 = -1;
00036 static integer c__2 = 2;
00037 
00038 /* Subroutine */ int zerrac_(integer *nunit)
00039 {
00040     /* Format strings */
00041     static char fmt_9999[] = "(1x,a6,\002 drivers passed the tests of the er"
00042             "ror exits\002)";
00043     static char fmt_9998[] = "(\002 *** \002,a6,\002 drivers failed the test"
00044             "s of the error \002,\002exits ***\002)";
00045 
00046     /* System generated locals */
00047     integer i__1;
00048     doublereal d__1;
00049 
00050     /* Builtin functions */
00051     integer s_wsle(cilist *), e_wsle(void);
00052     /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
00053     integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
00054 
00055     /* Local variables */
00056     doublecomplex a[16] /* was [4][4] */, b[4], c__[4];
00057     integer i__, j;
00058     doublecomplex r__[4], w[8], x[4], r1[4], r2[4], af[16]      /* was [4][4] 
00059             */;
00060     integer info, iter;
00061     doublecomplex work[16];
00062     doublereal rwork[4];
00063     complex swork[16];
00064     extern /* Subroutine */ int chkxer_(char *, integer *, integer *, logical 
00065             *, logical *), zcposv_(char *, integer *, integer *, 
00066             doublecomplex *, integer *, doublecomplex *, integer *, 
00067             doublecomplex *, integer *, doublecomplex *, complex *, 
00068             doublereal *, integer *, integer *);
00069 
00070     /* Fortran I/O blocks */
00071     static cilist io___1 = { 0, 0, 0, 0, 0 };
00072     static cilist io___18 = { 0, 0, 0, fmt_9999, 0 };
00073     static cilist io___19 = { 0, 0, 0, fmt_9998, 0 };
00074 
00075 
00076 
00077 /*  -- LAPACK test routine (version 3.1.2) -- */
00078 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00079 /*     May 2007 */
00080 
00081 /*     .. Scalar Arguments .. */
00082 /*     .. */
00083 
00084 /*  Purpose */
00085 /*  ======= */
00086 
00087 /*  ZERRPX tests the error exits for ZCPOSV. */
00088 
00089 /*  Arguments */
00090 /*  ========= */
00091 
00092 /*  NUNIT   (input) INTEGER */
00093 /*          The unit number for output. */
00094 
00095 /*  ===================================================================== */
00096 
00097 /*     .. Parameters .. */
00098 /*     .. */
00099 /*     .. Local Scalars .. */
00100 /*     .. */
00101 /*     .. Local Arrays .. */
00102 /*     .. */
00103 /*     .. External Subroutines .. */
00104 /*     .. */
00105 /*     .. Scalars in Common .. */
00106 /*     .. */
00107 /*     .. Common blocks .. */
00108 /*     .. */
00109 /*     .. Intrinsic Functions .. */
00110 /*     .. */
00111 /*     .. Executable Statements .. */
00112 
00113     infoc_1.nout = *nunit;
00114     io___1.ciunit = infoc_1.nout;
00115     s_wsle(&io___1);
00116     e_wsle();
00117 
00118 /*     Set the variables to innocuous values. */
00119 
00120     for (j = 1; j <= 4; ++j) {
00121         for (i__ = 1; i__ <= 4; ++i__) {
00122             i__1 = i__ + (j << 2) - 5;
00123             d__1 = 1. / (doublereal) (i__ + j);
00124             a[i__1].r = d__1, a[i__1].i = 0.;
00125             i__1 = i__ + (j << 2) - 5;
00126             d__1 = 1. / (doublereal) (i__ + j);
00127             af[i__1].r = d__1, af[i__1].i = 0.;
00128 /* L10: */
00129         }
00130         i__1 = j - 1;
00131         b[i__1].r = 0., b[i__1].i = 0.;
00132         i__1 = j - 1;
00133         r1[i__1].r = 0., r1[i__1].i = 0.;
00134         i__1 = j - 1;
00135         r2[i__1].r = 0., r2[i__1].i = 0.;
00136         i__1 = j - 1;
00137         w[i__1].r = 0., w[i__1].i = 0.;
00138         i__1 = j - 1;
00139         x[i__1].r = 0., x[i__1].i = 0.;
00140         i__1 = j - 1;
00141         c__[i__1].r = 0., c__[i__1].i = 0.;
00142         i__1 = j - 1;
00143         r__[i__1].r = 0., r__[i__1].i = 0.;
00144 /* L20: */
00145     }
00146     infoc_1.ok = TRUE_;
00147 
00148     s_copy(srnamc_1.srnamt, "ZCPOSV", (ftnlen)32, (ftnlen)6);
00149     infoc_1.infot = 1;
00150     zcposv_("/", &c__0, &c__0, a, &c__1, b, &c__1, x, &c__1, work, swork, 
00151             rwork, &iter, &info);
00152     chkxer_("ZCPOSV", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00153             infoc_1.ok);
00154     infoc_1.infot = 2;
00155     zcposv_("U", &c_n1, &c__0, a, &c__1, b, &c__1, x, &c__1, work, swork, 
00156             rwork, &iter, &info);
00157     chkxer_("ZCPOSV", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00158             infoc_1.ok);
00159     infoc_1.infot = 3;
00160     zcposv_("U", &c__0, &c_n1, a, &c__1, b, &c__1, x, &c__1, work, swork, 
00161             rwork, &iter, &info);
00162     chkxer_("ZCPOSV", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00163             infoc_1.ok);
00164     infoc_1.infot = 5;
00165     zcposv_("U", &c__2, &c__1, a, &c__1, b, &c__2, x, &c__2, work, swork, 
00166             rwork, &iter, &info);
00167     chkxer_("ZCPOSV", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00168             infoc_1.ok);
00169     infoc_1.infot = 7;
00170     zcposv_("U", &c__2, &c__1, a, &c__2, b, &c__1, x, &c__2, work, swork, 
00171             rwork, &iter, &info);
00172     chkxer_("ZCPOSV", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00173             infoc_1.ok);
00174     infoc_1.infot = 9;
00175     zcposv_("U", &c__2, &c__1, a, &c__2, b, &c__2, x, &c__1, work, swork, 
00176             rwork, &iter, &info);
00177     chkxer_("ZCPOSV", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00178             infoc_1.ok);
00179 
00180 /*     Print a summary line. */
00181 
00182     if (infoc_1.ok) {
00183         io___18.ciunit = infoc_1.nout;
00184         s_wsfe(&io___18);
00185         do_fio(&c__1, "ZCPOSV", (ftnlen)6);
00186         e_wsfe();
00187     } else {
00188         io___19.ciunit = infoc_1.nout;
00189         s_wsfe(&io___19);
00190         do_fio(&c__1, "ZCPOSV", (ftnlen)6);
00191         e_wsfe();
00192     }
00193 
00194 
00195     return 0;
00196 
00197 /*     End of ZERRAC */
00198 
00199 } /* zerrac_ */


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