cerrtr.c
Go to the documentation of this file.
00001 /* cerrtr.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__0 = 0;
00035 static integer c__1 = 1;
00036 static integer c_n1 = -1;
00037 
00038 /* Subroutine */ int cerrtr_(char *path, integer *nunit)
00039 {
00040     /* Builtin functions */
00041     integer s_wsle(cilist *), e_wsle(void);
00042     /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
00043 
00044     /* Local variables */
00045     complex a[4]        /* was [2][2] */, b[2], w[2], x[2];
00046     char c2[2];
00047     real r1[2], r2[2], rw[2];
00048     integer info;
00049     real scale, rcond;
00050     extern /* Subroutine */ int ctrti2_(char *, char *, integer *, complex *, 
00051             integer *, integer *), alaesm_(char *, logical *, 
00052             integer *), clatbs_(char *, char *, char *, char *, 
00053             integer *, integer *, complex *, integer *, complex *, real *, 
00054             real *, integer *), ctbcon_(char *
00055 , char *, char *, integer *, integer *, complex *, integer *, 
00056             real *, complex *, real *, integer *);
00057     extern logical lsamen_(integer *, char *, char *);
00058     extern /* Subroutine */ int ctbrfs_(char *, char *, char *, integer *, 
00059             integer *, integer *, complex *, integer *, complex *, integer *, 
00060             complex *, integer *, real *, real *, complex *, real *, integer *
00061 ), chkxer_(char *, integer *, integer *, 
00062             logical *, logical *), clatps_(char *, char *, char *, 
00063             char *, integer *, complex *, complex *, real *, real *, integer *
00064 ), ctpcon_(char *, char *, char *, 
00065              integer *, complex *, real *, complex *, real *, integer *), clatrs_(char *, char *, char *, char *, 
00066             integer *, complex *, integer *, complex *, real *, real *, 
00067             integer *), ctrcon_(char *, char *
00068 , char *, integer *, complex *, integer *, real *, complex *, 
00069             real *, integer *), ctbtrs_(char *, char *
00070 , char *, integer *, integer *, integer *, complex *, integer *, 
00071             complex *, integer *, integer *), ctprfs_(
00072             char *, char *, char *, integer *, integer *, complex *, complex *
00073 , integer *, complex *, integer *, real *, real *, complex *, 
00074             real *, integer *), ctrrfs_(char *, char *
00075 , char *, integer *, integer *, complex *, integer *, complex *, 
00076             integer *, complex *, integer *, real *, real *, complex *, real *
00077 , integer *), ctptri_(char *, char *, 
00078             integer *, complex *, integer *), ctrtri_(char *, 
00079             char *, integer *, complex *, integer *, integer *), ctptrs_(char *, char *, char *, integer *, integer *, 
00080             complex *, complex *, integer *, integer *), ctrtrs_(char *, char *, char *, integer *, integer *, 
00081             complex *, integer *, complex *, integer *, integer *);
00082 
00083     /* Fortran I/O blocks */
00084     static cilist io___1 = { 0, 0, 0, 0, 0 };
00085 
00086 
00087 
00088 /*  -- LAPACK test routine (version 3.1) -- */
00089 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00090 /*     November 2006 */
00091 
00092 /*     .. Scalar Arguments .. */
00093 /*     .. */
00094 
00095 /*  Purpose */
00096 /*  ======= */
00097 
00098 /*  CERRTR tests the error exits for the COMPLEX triangular routines. */
00099 
00100 /*  Arguments */
00101 /*  ========= */
00102 
00103 /*  PATH    (input) CHARACTER*3 */
00104 /*          The LAPACK path name for the routines to be tested. */
00105 
00106 /*  NUNIT   (input) INTEGER */
00107 /*          The unit number for output. */
00108 
00109 /*  ===================================================================== */
00110 
00111 /*     .. Parameters .. */
00112 /*     .. */
00113 /*     .. Local Scalars .. */
00114 /*     .. */
00115 /*     .. Local Arrays .. */
00116 /*     .. */
00117 /*     .. External Functions .. */
00118 /*     .. */
00119 /*     .. External Subroutines .. */
00120 /*     .. */
00121 /*     .. Scalars in Common .. */
00122 /*     .. */
00123 /*     .. Common blocks .. */
00124 /*     .. */
00125 /*     .. Executable Statements .. */
00126 
00127     infoc_1.nout = *nunit;
00128     io___1.ciunit = infoc_1.nout;
00129     s_wsle(&io___1);
00130     e_wsle();
00131     s_copy(c2, path + 1, (ftnlen)2, (ftnlen)2);
00132     a[0].r = 1.f, a[0].i = 0.f;
00133     a[2].r = 2.f, a[2].i = 0.f;
00134     a[3].r = 3.f, a[3].i = 0.f;
00135     a[1].r = 4.f, a[1].i = 0.f;
00136     infoc_1.ok = TRUE_;
00137 
00138 /*     Test error exits for the general triangular routines. */
00139 
00140     if (lsamen_(&c__2, c2, "TR")) {
00141 
00142 /*        CTRTRI */
00143 
00144         s_copy(srnamc_1.srnamt, "CTRTRI", (ftnlen)32, (ftnlen)6);
00145         infoc_1.infot = 1;
00146         ctrtri_("/", "N", &c__0, a, &c__1, &info);
00147         chkxer_("CTRTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00148                 infoc_1.ok);
00149         infoc_1.infot = 2;
00150         ctrtri_("U", "/", &c__0, a, &c__1, &info);
00151         chkxer_("CTRTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00152                 infoc_1.ok);
00153         infoc_1.infot = 3;
00154         ctrtri_("U", "N", &c_n1, a, &c__1, &info);
00155         chkxer_("CTRTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00156                 infoc_1.ok);
00157         infoc_1.infot = 5;
00158         ctrtri_("U", "N", &c__2, a, &c__1, &info);
00159         chkxer_("CTRTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00160                 infoc_1.ok);
00161 
00162 /*        CTRTI2 */
00163 
00164         s_copy(srnamc_1.srnamt, "CTRTI2", (ftnlen)32, (ftnlen)6);
00165         infoc_1.infot = 1;
00166         ctrti2_("/", "N", &c__0, a, &c__1, &info);
00167         chkxer_("CTRTI2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00168                 infoc_1.ok);
00169         infoc_1.infot = 2;
00170         ctrti2_("U", "/", &c__0, a, &c__1, &info);
00171         chkxer_("CTRTI2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00172                 infoc_1.ok);
00173         infoc_1.infot = 3;
00174         ctrti2_("U", "N", &c_n1, a, &c__1, &info);
00175         chkxer_("CTRTI2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00176                 infoc_1.ok);
00177         infoc_1.infot = 5;
00178         ctrti2_("U", "N", &c__2, a, &c__1, &info);
00179         chkxer_("CTRTI2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00180                 infoc_1.ok);
00181 
00182 
00183 /*        CTRTRS */
00184 
00185         s_copy(srnamc_1.srnamt, "CTRTRS", (ftnlen)32, (ftnlen)6);
00186         infoc_1.infot = 1;
00187         ctrtrs_("/", "N", "N", &c__0, &c__0, a, &c__1, x, &c__1, &info);
00188         chkxer_("CTRTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00189                 infoc_1.ok);
00190         infoc_1.infot = 2;
00191         ctrtrs_("U", "/", "N", &c__0, &c__0, a, &c__1, x, &c__1, &info);
00192         chkxer_("CTRTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00193                 infoc_1.ok);
00194         infoc_1.infot = 3;
00195         ctrtrs_("U", "N", "/", &c__0, &c__0, a, &c__1, x, &c__1, &info);
00196         chkxer_("CTRTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00197                 infoc_1.ok);
00198         infoc_1.infot = 4;
00199         ctrtrs_("U", "N", "N", &c_n1, &c__0, a, &c__1, x, &c__1, &info);
00200         chkxer_("CTRTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00201                 infoc_1.ok);
00202         infoc_1.infot = 5;
00203         ctrtrs_("U", "N", "N", &c__0, &c_n1, a, &c__1, x, &c__1, &info);
00204         chkxer_("CTRTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00205                 infoc_1.ok);
00206         infoc_1.infot = 7;
00207 
00208 /*        CTRRFS */
00209 
00210         s_copy(srnamc_1.srnamt, "CTRRFS", (ftnlen)32, (ftnlen)6);
00211         infoc_1.infot = 1;
00212         ctrrfs_("/", "N", "N", &c__0, &c__0, a, &c__1, b, &c__1, x, &c__1, r1, 
00213                  r2, w, rw, &info);
00214         chkxer_("CTRRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00215                 infoc_1.ok);
00216         infoc_1.infot = 2;
00217         ctrrfs_("U", "/", "N", &c__0, &c__0, a, &c__1, b, &c__1, x, &c__1, r1, 
00218                  r2, w, rw, &info);
00219         chkxer_("CTRRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00220                 infoc_1.ok);
00221         infoc_1.infot = 3;
00222         ctrrfs_("U", "N", "/", &c__0, &c__0, a, &c__1, b, &c__1, x, &c__1, r1, 
00223                  r2, w, rw, &info);
00224         chkxer_("CTRRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00225                 infoc_1.ok);
00226         infoc_1.infot = 4;
00227         ctrrfs_("U", "N", "N", &c_n1, &c__0, a, &c__1, b, &c__1, x, &c__1, r1, 
00228                  r2, w, rw, &info);
00229         chkxer_("CTRRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00230                 infoc_1.ok);
00231         infoc_1.infot = 5;
00232         ctrrfs_("U", "N", "N", &c__0, &c_n1, a, &c__1, b, &c__1, x, &c__1, r1, 
00233                  r2, w, rw, &info);
00234         chkxer_("CTRRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00235                 infoc_1.ok);
00236         infoc_1.infot = 7;
00237         ctrrfs_("U", "N", "N", &c__2, &c__1, a, &c__1, b, &c__2, x, &c__2, r1, 
00238                  r2, w, rw, &info);
00239         chkxer_("CTRRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00240                 infoc_1.ok);
00241         infoc_1.infot = 9;
00242         ctrrfs_("U", "N", "N", &c__2, &c__1, a, &c__2, b, &c__1, x, &c__2, r1, 
00243                  r2, w, rw, &info);
00244         chkxer_("CTRRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00245                 infoc_1.ok);
00246         infoc_1.infot = 11;
00247         ctrrfs_("U", "N", "N", &c__2, &c__1, a, &c__2, b, &c__2, x, &c__1, r1, 
00248                  r2, w, rw, &info);
00249         chkxer_("CTRRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00250                 infoc_1.ok);
00251 
00252 /*        CTRCON */
00253 
00254         s_copy(srnamc_1.srnamt, "CTRCON", (ftnlen)32, (ftnlen)6);
00255         infoc_1.infot = 1;
00256         ctrcon_("/", "U", "N", &c__0, a, &c__1, &rcond, w, rw, &info);
00257         chkxer_("CTRCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00258                 infoc_1.ok);
00259         infoc_1.infot = 2;
00260         ctrcon_("1", "/", "N", &c__0, a, &c__1, &rcond, w, rw, &info);
00261         chkxer_("CTRCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00262                 infoc_1.ok);
00263         infoc_1.infot = 3;
00264         ctrcon_("1", "U", "/", &c__0, a, &c__1, &rcond, w, rw, &info);
00265         chkxer_("CTRCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00266                 infoc_1.ok);
00267         infoc_1.infot = 4;
00268         ctrcon_("1", "U", "N", &c_n1, a, &c__1, &rcond, w, rw, &info);
00269         chkxer_("CTRCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00270                 infoc_1.ok);
00271         infoc_1.infot = 6;
00272         ctrcon_("1", "U", "N", &c__2, a, &c__1, &rcond, w, rw, &info);
00273         chkxer_("CTRCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00274                 infoc_1.ok);
00275 
00276 /*        CLATRS */
00277 
00278         s_copy(srnamc_1.srnamt, "CLATRS", (ftnlen)32, (ftnlen)6);
00279         infoc_1.infot = 1;
00280         clatrs_("/", "N", "N", "N", &c__0, a, &c__1, x, &scale, rw, &info);
00281         chkxer_("CLATRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00282                 infoc_1.ok);
00283         infoc_1.infot = 2;
00284         clatrs_("U", "/", "N", "N", &c__0, a, &c__1, x, &scale, rw, &info);
00285         chkxer_("CLATRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00286                 infoc_1.ok);
00287         infoc_1.infot = 3;
00288         clatrs_("U", "N", "/", "N", &c__0, a, &c__1, x, &scale, rw, &info);
00289         chkxer_("CLATRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00290                 infoc_1.ok);
00291         infoc_1.infot = 4;
00292         clatrs_("U", "N", "N", "/", &c__0, a, &c__1, x, &scale, rw, &info);
00293         chkxer_("CLATRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00294                 infoc_1.ok);
00295         infoc_1.infot = 5;
00296         clatrs_("U", "N", "N", "N", &c_n1, a, &c__1, x, &scale, rw, &info);
00297         chkxer_("CLATRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00298                 infoc_1.ok);
00299         infoc_1.infot = 7;
00300         clatrs_("U", "N", "N", "N", &c__2, a, &c__1, x, &scale, rw, &info);
00301         chkxer_("CLATRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00302                 infoc_1.ok);
00303 
00304 /*     Test error exits for the packed triangular routines. */
00305 
00306     } else if (lsamen_(&c__2, c2, "TP")) {
00307 
00308 /*        CTPTRI */
00309 
00310         s_copy(srnamc_1.srnamt, "CTPTRI", (ftnlen)32, (ftnlen)6);
00311         infoc_1.infot = 1;
00312         ctptri_("/", "N", &c__0, a, &info);
00313         chkxer_("CTPTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00314                 infoc_1.ok);
00315         infoc_1.infot = 2;
00316         ctptri_("U", "/", &c__0, a, &info);
00317         chkxer_("CTPTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00318                 infoc_1.ok);
00319         infoc_1.infot = 3;
00320         ctptri_("U", "N", &c_n1, a, &info);
00321         chkxer_("CTPTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00322                 infoc_1.ok);
00323 
00324 /*        CTPTRS */
00325 
00326         s_copy(srnamc_1.srnamt, "CTPTRS", (ftnlen)32, (ftnlen)6);
00327         infoc_1.infot = 1;
00328         ctptrs_("/", "N", "N", &c__0, &c__0, a, x, &c__1, &info);
00329         chkxer_("CTPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00330                 infoc_1.ok);
00331         infoc_1.infot = 2;
00332         ctptrs_("U", "/", "N", &c__0, &c__0, a, x, &c__1, &info);
00333         chkxer_("CTPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00334                 infoc_1.ok);
00335         infoc_1.infot = 3;
00336         ctptrs_("U", "N", "/", &c__0, &c__0, a, x, &c__1, &info);
00337         chkxer_("CTPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00338                 infoc_1.ok);
00339         infoc_1.infot = 4;
00340         ctptrs_("U", "N", "N", &c_n1, &c__0, a, x, &c__1, &info);
00341         chkxer_("CTPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00342                 infoc_1.ok);
00343         infoc_1.infot = 5;
00344         ctptrs_("U", "N", "N", &c__0, &c_n1, a, x, &c__1, &info);
00345         chkxer_("CTPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00346                 infoc_1.ok);
00347         infoc_1.infot = 8;
00348         ctptrs_("U", "N", "N", &c__2, &c__1, a, x, &c__1, &info);
00349         chkxer_("CTPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00350                 infoc_1.ok);
00351 
00352 /*        CTPRFS */
00353 
00354         s_copy(srnamc_1.srnamt, "CTPRFS", (ftnlen)32, (ftnlen)6);
00355         infoc_1.infot = 1;
00356         ctprfs_("/", "N", "N", &c__0, &c__0, a, b, &c__1, x, &c__1, r1, r2, w, 
00357                  rw, &info);
00358         chkxer_("CTPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00359                 infoc_1.ok);
00360         infoc_1.infot = 2;
00361         ctprfs_("U", "/", "N", &c__0, &c__0, a, b, &c__1, x, &c__1, r1, r2, w, 
00362                  rw, &info);
00363         chkxer_("CTPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00364                 infoc_1.ok);
00365         infoc_1.infot = 3;
00366         ctprfs_("U", "N", "/", &c__0, &c__0, a, b, &c__1, x, &c__1, r1, r2, w, 
00367                  rw, &info);
00368         chkxer_("CTPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00369                 infoc_1.ok);
00370         infoc_1.infot = 4;
00371         ctprfs_("U", "N", "N", &c_n1, &c__0, a, b, &c__1, x, &c__1, r1, r2, w, 
00372                  rw, &info);
00373         chkxer_("CTPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00374                 infoc_1.ok);
00375         infoc_1.infot = 5;
00376         ctprfs_("U", "N", "N", &c__0, &c_n1, a, b, &c__1, x, &c__1, r1, r2, w, 
00377                  rw, &info);
00378         chkxer_("CTPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00379                 infoc_1.ok);
00380         infoc_1.infot = 8;
00381         ctprfs_("U", "N", "N", &c__2, &c__1, a, b, &c__1, x, &c__2, r1, r2, w, 
00382                  rw, &info);
00383         chkxer_("CTPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00384                 infoc_1.ok);
00385         infoc_1.infot = 10;
00386         ctprfs_("U", "N", "N", &c__2, &c__1, a, b, &c__2, x, &c__1, r1, r2, w, 
00387                  rw, &info);
00388         chkxer_("CTPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00389                 infoc_1.ok);
00390 
00391 /*        CTPCON */
00392 
00393         s_copy(srnamc_1.srnamt, "CTPCON", (ftnlen)32, (ftnlen)6);
00394         infoc_1.infot = 1;
00395         ctpcon_("/", "U", "N", &c__0, a, &rcond, w, rw, &info);
00396         chkxer_("CTPCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00397                 infoc_1.ok);
00398         infoc_1.infot = 2;
00399         ctpcon_("1", "/", "N", &c__0, a, &rcond, w, rw, &info);
00400         chkxer_("CTPCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00401                 infoc_1.ok);
00402         infoc_1.infot = 3;
00403         ctpcon_("1", "U", "/", &c__0, a, &rcond, w, rw, &info);
00404         chkxer_("CTPCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00405                 infoc_1.ok);
00406         infoc_1.infot = 4;
00407         ctpcon_("1", "U", "N", &c_n1, a, &rcond, w, rw, &info);
00408         chkxer_("CTPCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00409                 infoc_1.ok);
00410 
00411 /*        CLATPS */
00412 
00413         s_copy(srnamc_1.srnamt, "CLATPS", (ftnlen)32, (ftnlen)6);
00414         infoc_1.infot = 1;
00415         clatps_("/", "N", "N", "N", &c__0, a, x, &scale, rw, &info);
00416         chkxer_("CLATPS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00417                 infoc_1.ok);
00418         infoc_1.infot = 2;
00419         clatps_("U", "/", "N", "N", &c__0, a, x, &scale, rw, &info);
00420         chkxer_("CLATPS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00421                 infoc_1.ok);
00422         infoc_1.infot = 3;
00423         clatps_("U", "N", "/", "N", &c__0, a, x, &scale, rw, &info);
00424         chkxer_("CLATPS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00425                 infoc_1.ok);
00426         infoc_1.infot = 4;
00427         clatps_("U", "N", "N", "/", &c__0, a, x, &scale, rw, &info);
00428         chkxer_("CLATPS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00429                 infoc_1.ok);
00430         infoc_1.infot = 5;
00431         clatps_("U", "N", "N", "N", &c_n1, a, x, &scale, rw, &info);
00432         chkxer_("CLATPS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00433                 infoc_1.ok);
00434 
00435 /*     Test error exits for the banded triangular routines. */
00436 
00437     } else if (lsamen_(&c__2, c2, "TB")) {
00438 
00439 /*        CTBTRS */
00440 
00441         s_copy(srnamc_1.srnamt, "CTBTRS", (ftnlen)32, (ftnlen)6);
00442         infoc_1.infot = 1;
00443         ctbtrs_("/", "N", "N", &c__0, &c__0, &c__0, a, &c__1, x, &c__1, &info);
00444         chkxer_("CTBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00445                 infoc_1.ok);
00446         infoc_1.infot = 2;
00447         ctbtrs_("U", "/", "N", &c__0, &c__0, &c__0, a, &c__1, x, &c__1, &info);
00448         chkxer_("CTBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00449                 infoc_1.ok);
00450         infoc_1.infot = 3;
00451         ctbtrs_("U", "N", "/", &c__0, &c__0, &c__0, a, &c__1, x, &c__1, &info);
00452         chkxer_("CTBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00453                 infoc_1.ok);
00454         infoc_1.infot = 4;
00455         ctbtrs_("U", "N", "N", &c_n1, &c__0, &c__0, a, &c__1, x, &c__1, &info);
00456         chkxer_("CTBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00457                 infoc_1.ok);
00458         infoc_1.infot = 5;
00459         ctbtrs_("U", "N", "N", &c__0, &c_n1, &c__0, a, &c__1, x, &c__1, &info);
00460         chkxer_("CTBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00461                 infoc_1.ok);
00462         infoc_1.infot = 6;
00463         ctbtrs_("U", "N", "N", &c__0, &c__0, &c_n1, a, &c__1, x, &c__1, &info);
00464         chkxer_("CTBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00465                 infoc_1.ok);
00466         infoc_1.infot = 8;
00467         ctbtrs_("U", "N", "N", &c__2, &c__1, &c__1, a, &c__1, x, &c__2, &info);
00468         chkxer_("CTBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00469                 infoc_1.ok);
00470         infoc_1.infot = 10;
00471         ctbtrs_("U", "N", "N", &c__2, &c__0, &c__1, a, &c__1, x, &c__1, &info);
00472         chkxer_("CTBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00473                 infoc_1.ok);
00474 
00475 /*        CTBRFS */
00476 
00477         s_copy(srnamc_1.srnamt, "CTBRFS", (ftnlen)32, (ftnlen)6);
00478         infoc_1.infot = 1;
00479         ctbrfs_("/", "N", "N", &c__0, &c__0, &c__0, a, &c__1, b, &c__1, x, &
00480                 c__1, r1, r2, w, rw, &info);
00481         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00482                 infoc_1.ok);
00483         infoc_1.infot = 2;
00484         ctbrfs_("U", "/", "N", &c__0, &c__0, &c__0, a, &c__1, b, &c__1, x, &
00485                 c__1, r1, r2, w, rw, &info);
00486         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00487                 infoc_1.ok);
00488         infoc_1.infot = 3;
00489         ctbrfs_("U", "N", "/", &c__0, &c__0, &c__0, a, &c__1, b, &c__1, x, &
00490                 c__1, r1, r2, w, rw, &info);
00491         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00492                 infoc_1.ok);
00493         infoc_1.infot = 4;
00494         ctbrfs_("U", "N", "N", &c_n1, &c__0, &c__0, a, &c__1, b, &c__1, x, &
00495                 c__1, r1, r2, w, rw, &info);
00496         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00497                 infoc_1.ok);
00498         infoc_1.infot = 5;
00499         ctbrfs_("U", "N", "N", &c__0, &c_n1, &c__0, a, &c__1, b, &c__1, x, &
00500                 c__1, r1, r2, w, rw, &info);
00501         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00502                 infoc_1.ok);
00503         infoc_1.infot = 6;
00504         ctbrfs_("U", "N", "N", &c__0, &c__0, &c_n1, a, &c__1, b, &c__1, x, &
00505                 c__1, r1, r2, w, rw, &info);
00506         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00507                 infoc_1.ok);
00508         infoc_1.infot = 8;
00509         ctbrfs_("U", "N", "N", &c__2, &c__1, &c__1, a, &c__1, b, &c__2, x, &
00510                 c__2, r1, r2, w, rw, &info);
00511         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00512                 infoc_1.ok);
00513         infoc_1.infot = 10;
00514         ctbrfs_("U", "N", "N", &c__2, &c__1, &c__1, a, &c__2, b, &c__1, x, &
00515                 c__2, r1, r2, w, rw, &info);
00516         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00517                 infoc_1.ok);
00518         infoc_1.infot = 12;
00519         ctbrfs_("U", "N", "N", &c__2, &c__1, &c__1, a, &c__2, b, &c__2, x, &
00520                 c__1, r1, r2, w, rw, &info);
00521         chkxer_("CTBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00522                 infoc_1.ok);
00523 
00524 /*        CTBCON */
00525 
00526         s_copy(srnamc_1.srnamt, "CTBCON", (ftnlen)32, (ftnlen)6);
00527         infoc_1.infot = 1;
00528         ctbcon_("/", "U", "N", &c__0, &c__0, a, &c__1, &rcond, w, rw, &info);
00529         chkxer_("CTBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00530                 infoc_1.ok);
00531         infoc_1.infot = 2;
00532         ctbcon_("1", "/", "N", &c__0, &c__0, a, &c__1, &rcond, w, rw, &info);
00533         chkxer_("CTBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00534                 infoc_1.ok);
00535         infoc_1.infot = 3;
00536         ctbcon_("1", "U", "/", &c__0, &c__0, a, &c__1, &rcond, w, rw, &info);
00537         chkxer_("CTBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00538                 infoc_1.ok);
00539         infoc_1.infot = 4;
00540         ctbcon_("1", "U", "N", &c_n1, &c__0, a, &c__1, &rcond, w, rw, &info);
00541         chkxer_("CTBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00542                 infoc_1.ok);
00543         infoc_1.infot = 5;
00544         ctbcon_("1", "U", "N", &c__0, &c_n1, a, &c__1, &rcond, w, rw, &info);
00545         chkxer_("CTBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00546                 infoc_1.ok);
00547         infoc_1.infot = 7;
00548         ctbcon_("1", "U", "N", &c__2, &c__1, a, &c__1, &rcond, w, rw, &info);
00549         chkxer_("CTBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00550                 infoc_1.ok);
00551 
00552 /*        CLATBS */
00553 
00554         s_copy(srnamc_1.srnamt, "CLATBS", (ftnlen)32, (ftnlen)6);
00555         infoc_1.infot = 1;
00556         clatbs_("/", "N", "N", "N", &c__0, &c__0, a, &c__1, x, &scale, rw, &
00557                 info);
00558         chkxer_("CLATBS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00559                 infoc_1.ok);
00560         infoc_1.infot = 2;
00561         clatbs_("U", "/", "N", "N", &c__0, &c__0, a, &c__1, x, &scale, rw, &
00562                 info);
00563         chkxer_("CLATBS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00564                 infoc_1.ok);
00565         infoc_1.infot = 3;
00566         clatbs_("U", "N", "/", "N", &c__0, &c__0, a, &c__1, x, &scale, rw, &
00567                 info);
00568         chkxer_("CLATBS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00569                 infoc_1.ok);
00570         infoc_1.infot = 4;
00571         clatbs_("U", "N", "N", "/", &c__0, &c__0, a, &c__1, x, &scale, rw, &
00572                 info);
00573         chkxer_("CLATBS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00574                 infoc_1.ok);
00575         infoc_1.infot = 5;
00576         clatbs_("U", "N", "N", "N", &c_n1, &c__0, a, &c__1, x, &scale, rw, &
00577                 info);
00578         chkxer_("CLATBS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00579                 infoc_1.ok);
00580         infoc_1.infot = 6;
00581         clatbs_("U", "N", "N", "N", &c__1, &c_n1, a, &c__1, x, &scale, rw, &
00582                 info);
00583         chkxer_("CLATBS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00584                 infoc_1.ok);
00585         infoc_1.infot = 8;
00586         clatbs_("U", "N", "N", "N", &c__2, &c__1, a, &c__1, x, &scale, rw, &
00587                 info);
00588         chkxer_("CLATBS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00589                 infoc_1.ok);
00590     }
00591 
00592 /*     Print a summary line. */
00593 
00594     alaesm_(path, &infoc_1.ok, &infoc_1.nout);
00595 
00596     return 0;
00597 
00598 /*     End of CERRTR */
00599 
00600 } /* cerrtr_ */


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