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


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