cerrpox.c
Go to the documentation of this file.
00001 /* cerrpox.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 cerrpo_(char *path, integer *nunit)
00039 {
00040     /* System generated locals */
00041     integer i__1;
00042     real r__1, r__2;
00043     complex q__1;
00044 
00045     /* Builtin functions */
00046     integer s_wsle(cilist *), e_wsle(void);
00047     /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
00048 
00049     /* Local variables */
00050     complex a[16]       /* was [4][4] */, b[4];
00051     integer i__, j;
00052     real r__[4], s[4];
00053     complex w[8], x[4];
00054     char c2[2];
00055     real r1[4], r2[4];
00056     complex af[16]      /* was [4][4] */;
00057     char eq[1];
00058     real err_bnds_c__[12]       /* was [4][3] */;
00059     integer n_err_bnds__;
00060     real err_bnds_n__[12]       /* was [4][3] */, berr;
00061     integer info;
00062     real anrm, rcond;
00063     extern /* Subroutine */ int cpbtf2_(char *, integer *, integer *, complex 
00064             *, integer *, integer *), cpotf2_(char *, integer *, 
00065             complex *, integer *, integer *), alaesm_(char *, logical 
00066             *, integer *), cpbcon_(char *, integer *, integer *, 
00067             complex *, integer *, real *, real *, complex *, real *, integer *
00068 );
00069     extern logical lsamen_(integer *, char *, char *);
00070     extern /* Subroutine */ int cpbequ_(char *, integer *, integer *, complex 
00071             *, integer *, real *, real *, real *, integer *), cpbrfs_(
00072             char *, integer *, integer *, integer *, complex *, integer *, 
00073             complex *, integer *, complex *, integer *, complex *, integer *, 
00074             real *, real *, complex *, real *, integer *), cpbtrf_(
00075             char *, integer *, integer *, complex *, integer *, integer *);
00076     real params;
00077     extern /* Subroutine */ int chkxer_(char *, integer *, integer *, logical 
00078             *, logical *), cpocon_(char *, integer *, complex *, 
00079             integer *, real *, real *, complex *, real *, integer *), 
00080             cppcon_(char *, integer *, complex *, real *, real *, complex *, 
00081             real *, integer *), cpoequ_(integer *, complex *, integer 
00082             *, real *, real *, real *, integer *), cpbtrs_(char *, integer *, 
00083             integer *, integer *, complex *, integer *, complex *, integer *, 
00084             integer *), cporfs_(char *, integer *, integer *, complex 
00085             *, integer *, complex *, integer *, complex *, integer *, complex 
00086             *, integer *, real *, real *, complex *, real *, integer *), cpotrf_(char *, integer *, complex *, integer *, integer 
00087             *), cpotri_(char *, integer *, complex *, integer *, 
00088             integer *), cppequ_(char *, integer *, complex *, real *, 
00089             real *, real *, integer *), cpprfs_(char *, integer *, 
00090             integer *, complex *, complex *, complex *, integer *, complex *, 
00091             integer *, real *, real *, complex *, real *, integer *), 
00092             cpptrf_(char *, integer *, complex *, integer *), cpptri_(
00093             char *, integer *, complex *, integer *), cpotrs_(char *, 
00094             integer *, integer *, complex *, integer *, complex *, integer *, 
00095             integer *), cpptrs_(char *, integer *, integer *, complex 
00096             *, complex *, integer *, integer *), cpoequb_(integer *, 
00097             complex *, integer *, real *, real *, real *, integer *);
00098     integer nparams;
00099     extern /* Subroutine */ int cporfsx_(char *, char *, integer *, integer *, 
00100              complex *, integer *, complex *, integer *, real *, complex *, 
00101             integer *, complex *, integer *, real *, real *, integer *, real *
00102 , real *, integer *, real *, complex *, real *, integer *);
00103 
00104     /* Fortran I/O blocks */
00105     static cilist io___1 = { 0, 0, 0, 0, 0 };
00106 
00107 
00108 
00109 /*  -- LAPACK test routine (version 3.1) -- */
00110 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00111 /*     November 2006 */
00112 
00113 /*     .. Scalar Arguments .. */
00114 /*     .. */
00115 
00116 /*  Purpose */
00117 /*  ======= */
00118 
00119 /*  CERRPO tests the error exits for the COMPLEX routines */
00120 /*  for Hermitian positive definite matrices. */
00121 
00122 /*  Arguments */
00123 /*  ========= */
00124 
00125 /*  PATH    (input) CHARACTER*3 */
00126 /*          The LAPACK path name for the routines to be tested. */
00127 
00128 /*  NUNIT   (input) INTEGER */
00129 /*          The unit number for output. */
00130 
00131 /*  ===================================================================== */
00132 
00133 /*     .. Parameters .. */
00134 /*     .. */
00135 /*     .. Local Scalars .. */
00136 /*     .. */
00137 /*     .. Local Arrays .. */
00138 /*     .. */
00139 /*     .. External Functions .. */
00140 /*     .. */
00141 /*     .. External Subroutines .. */
00142 /*     .. */
00143 /*     .. Scalars in Common .. */
00144 /*     .. */
00145 /*     .. Common blocks .. */
00146 /*     .. */
00147 /*     .. Intrinsic Functions .. */
00148 /*     .. */
00149 /*     .. Executable Statements .. */
00150 
00151     infoc_1.nout = *nunit;
00152     io___1.ciunit = infoc_1.nout;
00153     s_wsle(&io___1);
00154     e_wsle();
00155     s_copy(c2, path + 1, (ftnlen)2, (ftnlen)2);
00156 
00157 /*     Set the variables to innocuous values. */
00158 
00159     for (j = 1; j <= 4; ++j) {
00160         for (i__ = 1; i__ <= 4; ++i__) {
00161             i__1 = i__ + (j << 2) - 5;
00162             r__1 = 1.f / (real) (i__ + j);
00163             r__2 = -1.f / (real) (i__ + j);
00164             q__1.r = r__1, q__1.i = r__2;
00165             a[i__1].r = q__1.r, a[i__1].i = q__1.i;
00166             i__1 = i__ + (j << 2) - 5;
00167             r__1 = 1.f / (real) (i__ + j);
00168             r__2 = -1.f / (real) (i__ + j);
00169             q__1.r = r__1, q__1.i = r__2;
00170             af[i__1].r = q__1.r, af[i__1].i = q__1.i;
00171 /* L10: */
00172         }
00173         i__1 = j - 1;
00174         b[i__1].r = 0.f, b[i__1].i = 0.f;
00175         r1[j - 1] = 0.f;
00176         r2[j - 1] = 0.f;
00177         i__1 = j - 1;
00178         w[i__1].r = 0.f, w[i__1].i = 0.f;
00179         i__1 = j - 1;
00180         x[i__1].r = 0.f, x[i__1].i = 0.f;
00181         s[j - 1] = 0.f;
00182 /* L20: */
00183     }
00184     anrm = 1.f;
00185     infoc_1.ok = TRUE_;
00186 
00187 /*     Test error exits of the routines that use the Cholesky */
00188 /*     decomposition of a Hermitian positive definite matrix. */
00189 
00190     if (lsamen_(&c__2, c2, "PO")) {
00191 
00192 /*        CPOTRF */
00193 
00194         s_copy(srnamc_1.srnamt, "CPOTRF", (ftnlen)32, (ftnlen)6);
00195         infoc_1.infot = 1;
00196         cpotrf_("/", &c__0, a, &c__1, &info);
00197         chkxer_("CPOTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00198                 infoc_1.ok);
00199         infoc_1.infot = 2;
00200         cpotrf_("U", &c_n1, a, &c__1, &info);
00201         chkxer_("CPOTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00202                 infoc_1.ok);
00203         infoc_1.infot = 4;
00204         cpotrf_("U", &c__2, a, &c__1, &info);
00205         chkxer_("CPOTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00206                 infoc_1.ok);
00207 
00208 /*        CPOTF2 */
00209 
00210         s_copy(srnamc_1.srnamt, "CPOTF2", (ftnlen)32, (ftnlen)6);
00211         infoc_1.infot = 1;
00212         cpotf2_("/", &c__0, a, &c__1, &info);
00213         chkxer_("CPOTF2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00214                 infoc_1.ok);
00215         infoc_1.infot = 2;
00216         cpotf2_("U", &c_n1, a, &c__1, &info);
00217         chkxer_("CPOTF2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00218                 infoc_1.ok);
00219         infoc_1.infot = 4;
00220         cpotf2_("U", &c__2, a, &c__1, &info);
00221         chkxer_("CPOTF2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00222                 infoc_1.ok);
00223 
00224 /*        CPOTRI */
00225 
00226         s_copy(srnamc_1.srnamt, "CPOTRI", (ftnlen)32, (ftnlen)6);
00227         infoc_1.infot = 1;
00228         cpotri_("/", &c__0, a, &c__1, &info);
00229         chkxer_("CPOTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00230                 infoc_1.ok);
00231         infoc_1.infot = 2;
00232         cpotri_("U", &c_n1, a, &c__1, &info);
00233         chkxer_("CPOTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00234                 infoc_1.ok);
00235         infoc_1.infot = 4;
00236         cpotri_("U", &c__2, a, &c__1, &info);
00237         chkxer_("CPOTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00238                 infoc_1.ok);
00239 
00240 /*        CPOTRS */
00241 
00242         s_copy(srnamc_1.srnamt, "CPOTRS", (ftnlen)32, (ftnlen)6);
00243         infoc_1.infot = 1;
00244         cpotrs_("/", &c__0, &c__0, a, &c__1, b, &c__1, &info);
00245         chkxer_("CPOTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00246                 infoc_1.ok);
00247         infoc_1.infot = 2;
00248         cpotrs_("U", &c_n1, &c__0, a, &c__1, b, &c__1, &info);
00249         chkxer_("CPOTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00250                 infoc_1.ok);
00251         infoc_1.infot = 3;
00252         cpotrs_("U", &c__0, &c_n1, a, &c__1, b, &c__1, &info);
00253         chkxer_("CPOTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00254                 infoc_1.ok);
00255         infoc_1.infot = 5;
00256         cpotrs_("U", &c__2, &c__1, a, &c__1, b, &c__2, &info);
00257         chkxer_("CPOTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00258                 infoc_1.ok);
00259         infoc_1.infot = 7;
00260         cpotrs_("U", &c__2, &c__1, a, &c__2, b, &c__1, &info);
00261         chkxer_("CPOTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00262                 infoc_1.ok);
00263 
00264 /*        CPORFS */
00265 
00266         s_copy(srnamc_1.srnamt, "CPORFS", (ftnlen)32, (ftnlen)6);
00267         infoc_1.infot = 1;
00268         cporfs_("/", &c__0, &c__0, a, &c__1, af, &c__1, b, &c__1, x, &c__1, 
00269                 r1, r2, w, r__, &info);
00270         chkxer_("CPORFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00271                 infoc_1.ok);
00272         infoc_1.infot = 2;
00273         cporfs_("U", &c_n1, &c__0, a, &c__1, af, &c__1, b, &c__1, x, &c__1, 
00274                 r1, r2, w, r__, &info);
00275         chkxer_("CPORFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00276                 infoc_1.ok);
00277         infoc_1.infot = 3;
00278         cporfs_("U", &c__0, &c_n1, a, &c__1, af, &c__1, b, &c__1, x, &c__1, 
00279                 r1, r2, w, r__, &info);
00280         chkxer_("CPORFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00281                 infoc_1.ok);
00282         infoc_1.infot = 5;
00283         cporfs_("U", &c__2, &c__1, a, &c__1, af, &c__2, b, &c__2, x, &c__2, 
00284                 r1, r2, w, r__, &info);
00285         chkxer_("CPORFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00286                 infoc_1.ok);
00287         infoc_1.infot = 7;
00288         cporfs_("U", &c__2, &c__1, a, &c__2, af, &c__1, b, &c__2, x, &c__2, 
00289                 r1, r2, w, r__, &info);
00290         chkxer_("CPORFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00291                 infoc_1.ok);
00292         infoc_1.infot = 9;
00293         cporfs_("U", &c__2, &c__1, a, &c__2, af, &c__2, b, &c__1, x, &c__2, 
00294                 r1, r2, w, r__, &info);
00295         chkxer_("CPORFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00296                 infoc_1.ok);
00297         infoc_1.infot = 11;
00298         cporfs_("U", &c__2, &c__1, a, &c__2, af, &c__2, b, &c__2, x, &c__1, 
00299                 r1, r2, w, r__, &info);
00300         chkxer_("CPORFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00301                 infoc_1.ok);
00302 
00303 /*        CPORFSX */
00304 
00305         n_err_bnds__ = 3;
00306         nparams = 0;
00307         s_copy(srnamc_1.srnamt, "CPORFSX", (ftnlen)32, (ftnlen)7);
00308         infoc_1.infot = 1;
00309         cporfsx_("/", eq, &c__0, &c__0, a, &c__1, af, &c__1, s, b, &c__1, x, &
00310                 c__1, &rcond, &berr, &n_err_bnds__, err_bnds_n__, 
00311                 err_bnds_c__, &nparams, &params, w, r__, &info);
00312         chkxer_("CPORFSX", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00313                 infoc_1.ok);
00314         infoc_1.infot = 2;
00315         cporfsx_("U", eq, &c_n1, &c__0, a, &c__1, af, &c__1, s, b, &c__1, x, &
00316                 c__1, &rcond, &berr, &n_err_bnds__, err_bnds_n__, 
00317                 err_bnds_c__, &nparams, &params, w, r__, &info);
00318         chkxer_("CPORFSX", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00319                 infoc_1.ok);
00320         *(unsigned char *)eq = 'N';
00321         infoc_1.infot = 3;
00322         cporfsx_("U", eq, &c_n1, &c__0, a, &c__1, af, &c__1, s, b, &c__1, x, &
00323                 c__1, &rcond, &berr, &n_err_bnds__, err_bnds_n__, 
00324                 err_bnds_c__, &nparams, &params, w, r__, &info);
00325         chkxer_("CPORFSX", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00326                 infoc_1.ok);
00327         infoc_1.infot = 4;
00328         cporfsx_("U", eq, &c__0, &c_n1, a, &c__1, af, &c__1, s, b, &c__1, x, &
00329                 c__1, &rcond, &berr, &n_err_bnds__, err_bnds_n__, 
00330                 err_bnds_c__, &nparams, &params, w, r__, &info);
00331         chkxer_("CPORFSX", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00332                 infoc_1.ok);
00333         infoc_1.infot = 6;
00334         cporfsx_("U", eq, &c__2, &c__1, a, &c__1, af, &c__2, s, b, &c__2, x, &
00335                 c__2, &rcond, &berr, &n_err_bnds__, err_bnds_n__, 
00336                 err_bnds_c__, &nparams, &params, w, r__, &info);
00337         chkxer_("CPORFSX", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00338                 infoc_1.ok);
00339         infoc_1.infot = 8;
00340         cporfsx_("U", eq, &c__2, &c__1, a, &c__2, af, &c__1, s, b, &c__2, x, &
00341                 c__2, &rcond, &berr, &n_err_bnds__, err_bnds_n__, 
00342                 err_bnds_c__, &nparams, &params, w, r__, &info);
00343         chkxer_("CPORFSX", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00344                 infoc_1.ok);
00345         infoc_1.infot = 11;
00346         cporfsx_("U", eq, &c__2, &c__1, a, &c__2, af, &c__2, s, b, &c__1, x, &
00347                 c__2, &rcond, &berr, &n_err_bnds__, err_bnds_n__, 
00348                 err_bnds_c__, &nparams, &params, w, r__, &info);
00349         chkxer_("CPORFSX", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00350                 infoc_1.ok);
00351         infoc_1.infot = 13;
00352         cporfsx_("U", eq, &c__2, &c__1, a, &c__2, af, &c__2, s, b, &c__2, x, &
00353                 c__1, &rcond, &berr, &n_err_bnds__, err_bnds_n__, 
00354                 err_bnds_c__, &nparams, &params, w, r__, &info);
00355         chkxer_("CPORFSX", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00356                 infoc_1.ok);
00357 
00358 /*        CPOCON */
00359 
00360         s_copy(srnamc_1.srnamt, "CPOCON", (ftnlen)32, (ftnlen)6);
00361         infoc_1.infot = 1;
00362         cpocon_("/", &c__0, a, &c__1, &anrm, &rcond, w, r__, &info)
00363                 ;
00364         chkxer_("CPOCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00365                 infoc_1.ok);
00366         infoc_1.infot = 2;
00367         cpocon_("U", &c_n1, a, &c__1, &anrm, &rcond, w, r__, &info)
00368                 ;
00369         chkxer_("CPOCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00370                 infoc_1.ok);
00371         infoc_1.infot = 4;
00372         cpocon_("U", &c__2, a, &c__1, &anrm, &rcond, w, r__, &info)
00373                 ;
00374         chkxer_("CPOCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00375                 infoc_1.ok);
00376         infoc_1.infot = 5;
00377         r__1 = -anrm;
00378         cpocon_("U", &c__1, a, &c__1, &r__1, &rcond, w, r__, &info)
00379                 ;
00380         chkxer_("CPOCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00381                 infoc_1.ok);
00382 
00383 /*        CPOEQU */
00384 
00385         s_copy(srnamc_1.srnamt, "CPOEQU", (ftnlen)32, (ftnlen)6);
00386         infoc_1.infot = 1;
00387         cpoequ_(&c_n1, a, &c__1, r1, &rcond, &anrm, &info);
00388         chkxer_("CPOEQU", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00389                 infoc_1.ok);
00390         infoc_1.infot = 3;
00391         cpoequ_(&c__2, a, &c__1, r1, &rcond, &anrm, &info);
00392         chkxer_("CPOEQU", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00393                 infoc_1.ok);
00394 
00395 /*        CPOEQUB */
00396 
00397         s_copy(srnamc_1.srnamt, "CPOEQUB", (ftnlen)32, (ftnlen)7);
00398         infoc_1.infot = 1;
00399         cpoequb_(&c_n1, a, &c__1, r1, &rcond, &anrm, &info);
00400         chkxer_("CPOEQUB", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00401                 infoc_1.ok);
00402         infoc_1.infot = 3;
00403         cpoequb_(&c__2, a, &c__1, r1, &rcond, &anrm, &info);
00404         chkxer_("CPOEQUB", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00405                 infoc_1.ok);
00406 
00407 /*     Test error exits of the routines that use the Cholesky */
00408 /*     decomposition of a Hermitian positive definite packed matrix. */
00409 
00410     } else if (lsamen_(&c__2, c2, "PP")) {
00411 
00412 /*        CPPTRF */
00413 
00414         s_copy(srnamc_1.srnamt, "CPPTRF", (ftnlen)32, (ftnlen)6);
00415         infoc_1.infot = 1;
00416         cpptrf_("/", &c__0, a, &info);
00417         chkxer_("CPPTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00418                 infoc_1.ok);
00419         infoc_1.infot = 2;
00420         cpptrf_("U", &c_n1, a, &info);
00421         chkxer_("CPPTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00422                 infoc_1.ok);
00423 
00424 /*        CPPTRI */
00425 
00426         s_copy(srnamc_1.srnamt, "CPPTRI", (ftnlen)32, (ftnlen)6);
00427         infoc_1.infot = 1;
00428         cpptri_("/", &c__0, a, &info);
00429         chkxer_("CPPTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00430                 infoc_1.ok);
00431         infoc_1.infot = 2;
00432         cpptri_("U", &c_n1, a, &info);
00433         chkxer_("CPPTRI", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00434                 infoc_1.ok);
00435 
00436 /*        CPPTRS */
00437 
00438         s_copy(srnamc_1.srnamt, "CPPTRS", (ftnlen)32, (ftnlen)6);
00439         infoc_1.infot = 1;
00440         cpptrs_("/", &c__0, &c__0, a, b, &c__1, &info);
00441         chkxer_("CPPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00442                 infoc_1.ok);
00443         infoc_1.infot = 2;
00444         cpptrs_("U", &c_n1, &c__0, a, b, &c__1, &info);
00445         chkxer_("CPPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00446                 infoc_1.ok);
00447         infoc_1.infot = 3;
00448         cpptrs_("U", &c__0, &c_n1, a, b, &c__1, &info);
00449         chkxer_("CPPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00450                 infoc_1.ok);
00451         infoc_1.infot = 6;
00452         cpptrs_("U", &c__2, &c__1, a, b, &c__1, &info);
00453         chkxer_("CPPTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00454                 infoc_1.ok);
00455 
00456 /*        CPPRFS */
00457 
00458         s_copy(srnamc_1.srnamt, "CPPRFS", (ftnlen)32, (ftnlen)6);
00459         infoc_1.infot = 1;
00460         cpprfs_("/", &c__0, &c__0, a, af, b, &c__1, x, &c__1, r1, r2, w, r__, 
00461                 &info);
00462         chkxer_("CPPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00463                 infoc_1.ok);
00464         infoc_1.infot = 2;
00465         cpprfs_("U", &c_n1, &c__0, a, af, b, &c__1, x, &c__1, r1, r2, w, r__, 
00466                 &info);
00467         chkxer_("CPPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00468                 infoc_1.ok);
00469         infoc_1.infot = 3;
00470         cpprfs_("U", &c__0, &c_n1, a, af, b, &c__1, x, &c__1, r1, r2, w, r__, 
00471                 &info);
00472         chkxer_("CPPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00473                 infoc_1.ok);
00474         infoc_1.infot = 7;
00475         cpprfs_("U", &c__2, &c__1, a, af, b, &c__1, x, &c__2, r1, r2, w, r__, 
00476                 &info);
00477         chkxer_("CPPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00478                 infoc_1.ok);
00479         infoc_1.infot = 9;
00480         cpprfs_("U", &c__2, &c__1, a, af, b, &c__2, x, &c__1, r1, r2, w, r__, 
00481                 &info);
00482         chkxer_("CPPRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00483                 infoc_1.ok);
00484 
00485 /*        CPPCON */
00486 
00487         s_copy(srnamc_1.srnamt, "CPPCON", (ftnlen)32, (ftnlen)6);
00488         infoc_1.infot = 1;
00489         cppcon_("/", &c__0, a, &anrm, &rcond, w, r__, &info);
00490         chkxer_("CPPCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00491                 infoc_1.ok);
00492         infoc_1.infot = 2;
00493         cppcon_("U", &c_n1, a, &anrm, &rcond, w, r__, &info);
00494         chkxer_("CPPCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00495                 infoc_1.ok);
00496         infoc_1.infot = 4;
00497         r__1 = -anrm;
00498         cppcon_("U", &c__1, a, &r__1, &rcond, w, r__, &info);
00499         chkxer_("CPPCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00500                 infoc_1.ok);
00501 
00502 /*        CPPEQU */
00503 
00504         s_copy(srnamc_1.srnamt, "CPPEQU", (ftnlen)32, (ftnlen)6);
00505         infoc_1.infot = 1;
00506         cppequ_("/", &c__0, a, r1, &rcond, &anrm, &info);
00507         chkxer_("CPPEQU", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00508                 infoc_1.ok);
00509         infoc_1.infot = 2;
00510         cppequ_("U", &c_n1, a, r1, &rcond, &anrm, &info);
00511         chkxer_("CPPEQU", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00512                 infoc_1.ok);
00513 
00514 /*     Test error exits of the routines that use the Cholesky */
00515 /*     decomposition of a Hermitian positive definite band matrix. */
00516 
00517     } else if (lsamen_(&c__2, c2, "PB")) {
00518 
00519 /*        CPBTRF */
00520 
00521         s_copy(srnamc_1.srnamt, "CPBTRF", (ftnlen)32, (ftnlen)6);
00522         infoc_1.infot = 1;
00523         cpbtrf_("/", &c__0, &c__0, a, &c__1, &info);
00524         chkxer_("CPBTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00525                 infoc_1.ok);
00526         infoc_1.infot = 2;
00527         cpbtrf_("U", &c_n1, &c__0, a, &c__1, &info);
00528         chkxer_("CPBTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00529                 infoc_1.ok);
00530         infoc_1.infot = 3;
00531         cpbtrf_("U", &c__1, &c_n1, a, &c__1, &info);
00532         chkxer_("CPBTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00533                 infoc_1.ok);
00534         infoc_1.infot = 5;
00535         cpbtrf_("U", &c__2, &c__1, a, &c__1, &info);
00536         chkxer_("CPBTRF", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00537                 infoc_1.ok);
00538 
00539 /*        CPBTF2 */
00540 
00541         s_copy(srnamc_1.srnamt, "CPBTF2", (ftnlen)32, (ftnlen)6);
00542         infoc_1.infot = 1;
00543         cpbtf2_("/", &c__0, &c__0, a, &c__1, &info);
00544         chkxer_("CPBTF2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00545                 infoc_1.ok);
00546         infoc_1.infot = 2;
00547         cpbtf2_("U", &c_n1, &c__0, a, &c__1, &info);
00548         chkxer_("CPBTF2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00549                 infoc_1.ok);
00550         infoc_1.infot = 3;
00551         cpbtf2_("U", &c__1, &c_n1, a, &c__1, &info);
00552         chkxer_("CPBTF2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00553                 infoc_1.ok);
00554         infoc_1.infot = 5;
00555         cpbtf2_("U", &c__2, &c__1, a, &c__1, &info);
00556         chkxer_("CPBTF2", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00557                 infoc_1.ok);
00558 
00559 /*        CPBTRS */
00560 
00561         s_copy(srnamc_1.srnamt, "CPBTRS", (ftnlen)32, (ftnlen)6);
00562         infoc_1.infot = 1;
00563         cpbtrs_("/", &c__0, &c__0, &c__0, a, &c__1, b, &c__1, &info);
00564         chkxer_("CPBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00565                 infoc_1.ok);
00566         infoc_1.infot = 2;
00567         cpbtrs_("U", &c_n1, &c__0, &c__0, a, &c__1, b, &c__1, &info);
00568         chkxer_("CPBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00569                 infoc_1.ok);
00570         infoc_1.infot = 3;
00571         cpbtrs_("U", &c__1, &c_n1, &c__0, a, &c__1, b, &c__1, &info);
00572         chkxer_("CPBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00573                 infoc_1.ok);
00574         infoc_1.infot = 4;
00575         cpbtrs_("U", &c__0, &c__0, &c_n1, a, &c__1, b, &c__1, &info);
00576         chkxer_("CPBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00577                 infoc_1.ok);
00578         infoc_1.infot = 6;
00579         cpbtrs_("U", &c__2, &c__1, &c__1, a, &c__1, b, &c__1, &info);
00580         chkxer_("CPBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00581                 infoc_1.ok);
00582         infoc_1.infot = 8;
00583         cpbtrs_("U", &c__2, &c__0, &c__1, a, &c__1, b, &c__1, &info);
00584         chkxer_("CPBTRS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00585                 infoc_1.ok);
00586 
00587 /*        CPBRFS */
00588 
00589         s_copy(srnamc_1.srnamt, "CPBRFS", (ftnlen)32, (ftnlen)6);
00590         infoc_1.infot = 1;
00591         cpbrfs_("/", &c__0, &c__0, &c__0, a, &c__1, af, &c__1, b, &c__1, x, &
00592                 c__1, r1, r2, w, r__, &info);
00593         chkxer_("CPBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00594                 infoc_1.ok);
00595         infoc_1.infot = 2;
00596         cpbrfs_("U", &c_n1, &c__0, &c__0, a, &c__1, af, &c__1, b, &c__1, x, &
00597                 c__1, r1, r2, w, r__, &info);
00598         chkxer_("CPBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00599                 infoc_1.ok);
00600         infoc_1.infot = 3;
00601         cpbrfs_("U", &c__1, &c_n1, &c__0, a, &c__1, af, &c__1, b, &c__1, x, &
00602                 c__1, r1, r2, w, r__, &info);
00603         chkxer_("CPBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00604                 infoc_1.ok);
00605         infoc_1.infot = 4;
00606         cpbrfs_("U", &c__0, &c__0, &c_n1, a, &c__1, af, &c__1, b, &c__1, x, &
00607                 c__1, r1, r2, w, r__, &info);
00608         chkxer_("CPBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00609                 infoc_1.ok);
00610         infoc_1.infot = 6;
00611         cpbrfs_("U", &c__2, &c__1, &c__1, a, &c__1, af, &c__2, b, &c__2, x, &
00612                 c__2, r1, r2, w, r__, &info);
00613         chkxer_("CPBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00614                 infoc_1.ok);
00615         infoc_1.infot = 8;
00616         cpbrfs_("U", &c__2, &c__1, &c__1, a, &c__2, af, &c__1, b, &c__2, x, &
00617                 c__2, r1, r2, w, r__, &info);
00618         chkxer_("CPBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00619                 infoc_1.ok);
00620         infoc_1.infot = 10;
00621         cpbrfs_("U", &c__2, &c__0, &c__1, a, &c__1, af, &c__1, b, &c__1, x, &
00622                 c__2, r1, r2, w, r__, &info);
00623         chkxer_("CPBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00624                 infoc_1.ok);
00625         infoc_1.infot = 12;
00626         cpbrfs_("U", &c__2, &c__0, &c__1, a, &c__1, af, &c__1, b, &c__2, x, &
00627                 c__1, r1, r2, w, r__, &info);
00628         chkxer_("CPBRFS", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00629                 infoc_1.ok);
00630 
00631 /*        CPBCON */
00632 
00633         s_copy(srnamc_1.srnamt, "CPBCON", (ftnlen)32, (ftnlen)6);
00634         infoc_1.infot = 1;
00635         cpbcon_("/", &c__0, &c__0, a, &c__1, &anrm, &rcond, w, r__, &info);
00636         chkxer_("CPBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00637                 infoc_1.ok);
00638         infoc_1.infot = 2;
00639         cpbcon_("U", &c_n1, &c__0, a, &c__1, &anrm, &rcond, w, r__, &info);
00640         chkxer_("CPBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00641                 infoc_1.ok);
00642         infoc_1.infot = 3;
00643         cpbcon_("U", &c__1, &c_n1, a, &c__1, &anrm, &rcond, w, r__, &info);
00644         chkxer_("CPBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00645                 infoc_1.ok);
00646         infoc_1.infot = 5;
00647         cpbcon_("U", &c__2, &c__1, a, &c__1, &anrm, &rcond, w, r__, &info);
00648         chkxer_("CPBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00649                 infoc_1.ok);
00650         infoc_1.infot = 6;
00651         r__1 = -anrm;
00652         cpbcon_("U", &c__1, &c__0, a, &c__1, &r__1, &rcond, w, r__, &info);
00653         chkxer_("CPBCON", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00654                 infoc_1.ok);
00655 
00656 /*        CPBEQU */
00657 
00658         s_copy(srnamc_1.srnamt, "CPBEQU", (ftnlen)32, (ftnlen)6);
00659         infoc_1.infot = 1;
00660         cpbequ_("/", &c__0, &c__0, a, &c__1, r1, &rcond, &anrm, &info);
00661         chkxer_("CPBEQU", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00662                 infoc_1.ok);
00663         infoc_1.infot = 2;
00664         cpbequ_("U", &c_n1, &c__0, a, &c__1, r1, &rcond, &anrm, &info);
00665         chkxer_("CPBEQU", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00666                 infoc_1.ok);
00667         infoc_1.infot = 3;
00668         cpbequ_("U", &c__1, &c_n1, a, &c__1, r1, &rcond, &anrm, &info);
00669         chkxer_("CPBEQU", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00670                 infoc_1.ok);
00671         infoc_1.infot = 5;
00672         cpbequ_("U", &c__2, &c__1, a, &c__1, r1, &rcond, &anrm, &info);
00673         chkxer_("CPBEQU", &infoc_1.infot, &infoc_1.nout, &infoc_1.lerr, &
00674                 infoc_1.ok);
00675     }
00676 
00677 /*     Print a summary line. */
00678 
00679     alaesm_(path, &infoc_1.ok, &infoc_1.nout);
00680 
00681     return 0;
00682 
00683 /*     End of CERRPO */
00684 
00685 } /* cerrpo_ */


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