zchkpo.c
Go to the documentation of this file.
00001 /* zchkpo.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, nunit;
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_n1 = -1;
00035 static integer c__1 = 1;
00036 static integer c__8 = 8;
00037 
00038 /* Subroutine */ int zchkpo_(logical *dotype, integer *nn, integer *nval, 
00039         integer *nnb, integer *nbval, integer *nns, integer *nsval, 
00040         doublereal *thresh, logical *tsterr, integer *nmax, doublecomplex *a, 
00041         doublecomplex *afac, doublecomplex *ainv, doublecomplex *b, 
00042         doublecomplex *x, doublecomplex *xact, doublecomplex *work, 
00043         doublereal *rwork, integer *nout)
00044 {
00045     /* Initialized data */
00046 
00047     static integer iseedy[4] = { 1988,1989,1990,1991 };
00048     static char uplos[1*2] = "U" "L";
00049 
00050     /* Format strings */
00051     static char fmt_9999[] = "(\002 UPLO = '\002,a1,\002', N =\002,i5,\002, "
00052             "NB =\002,i4,\002, type \002,i2,\002, test \002,i2,\002, ratio "
00053             "=\002,g12.5)";
00054     static char fmt_9998[] = "(\002 UPLO = '\002,a1,\002', N =\002,i5,\002, "
00055             "NRHS=\002,i3,\002, type \002,i2,\002, test(\002,i2,\002) =\002,g"
00056             "12.5)";
00057     static char fmt_9997[] = "(\002 UPLO = '\002,a1,\002', N =\002,i5,\002"
00058             ",\002,10x,\002 type \002,i2,\002, test(\002,i2,\002) =\002,g12.5)"
00059             ;
00060 
00061     /* System generated locals */
00062     integer i__1, i__2, i__3, i__4;
00063 
00064     /* Builtin functions */
00065     /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
00066     integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
00067 
00068     /* Local variables */
00069     integer i__, k, n, nb, in, kl, ku, lda, inb, ioff, mode, imat, info;
00070     char path[3], dist[1];
00071     integer irhs, nrhs;
00072     char uplo[1], type__[1];
00073     integer nrun;
00074     extern /* Subroutine */ int alahd_(integer *, char *);
00075     integer nfail, iseed[4];
00076     extern doublereal dget06_(doublereal *, doublereal *);
00077     doublereal rcond;
00078     integer nimat;
00079     doublereal anorm;
00080     extern /* Subroutine */ int zget04_(integer *, integer *, doublecomplex *, 
00081              integer *, doublecomplex *, integer *, doublereal *, doublereal *
00082 );
00083     integer iuplo, izero, nerrs;
00084     extern /* Subroutine */ int zpot01_(char *, integer *, doublecomplex *, 
00085             integer *, doublecomplex *, integer *, doublereal *, doublereal *), zpot02_(char *, integer *, integer *, doublecomplex *, 
00086             integer *, doublecomplex *, integer *, doublecomplex *, integer *, 
00087              doublereal *, doublereal *), zpot03_(char *, integer *, 
00088             doublecomplex *, integer *, doublecomplex *, integer *, 
00089             doublecomplex *, integer *, doublereal *, doublereal *, 
00090             doublereal *), zpot05_(char *, integer *, integer *, 
00091             doublecomplex *, integer *, doublecomplex *, integer *, 
00092             doublecomplex *, integer *, doublecomplex *, integer *, 
00093             doublereal *, doublereal *, doublereal *);
00094     logical zerot;
00095     char xtype[1];
00096     extern /* Subroutine */ int zlatb4_(char *, integer *, integer *, integer 
00097             *, char *, integer *, integer *, doublereal *, integer *, 
00098             doublereal *, char *), alaerh_(char *, 
00099             char *, integer *, integer *, char *, integer *, integer *, 
00100             integer *, integer *, integer *, integer *, integer *, integer *, 
00101             integer *);
00102     doublereal rcondc;
00103     extern doublereal zlanhe_(char *, char *, integer *, doublecomplex *, 
00104             integer *, doublereal *);
00105     extern /* Subroutine */ int alasum_(char *, integer *, integer *, integer 
00106             *, integer *);
00107     doublereal cndnum;
00108     extern /* Subroutine */ int zlaipd_(integer *, doublecomplex *, integer *, 
00109              integer *), xlaenv_(integer *, integer *), zlacpy_(char *, 
00110             integer *, integer *, doublecomplex *, integer *, doublecomplex *, 
00111              integer *), zlarhs_(char *, char *, char *, char *, 
00112             integer *, integer *, integer *, integer *, integer *, 
00113             doublecomplex *, integer *, doublecomplex *, integer *, 
00114             doublecomplex *, integer *, integer *, integer *), zpocon_(char *, integer *, doublecomplex *, 
00115             integer *, doublereal *, doublereal *, doublecomplex *, 
00116             doublereal *, integer *), zlatms_(integer *, integer *, 
00117             char *, integer *, char *, doublereal *, integer *, doublereal *, 
00118             doublereal *, integer *, integer *, char *, doublecomplex *, 
00119             integer *, doublecomplex *, integer *);
00120     doublereal result[8];
00121     extern /* Subroutine */ int zerrpo_(char *, integer *), zporfs_(
00122             char *, integer *, integer *, doublecomplex *, integer *, 
00123             doublecomplex *, integer *, doublecomplex *, integer *, 
00124             doublecomplex *, integer *, doublereal *, doublereal *, 
00125             doublecomplex *, doublereal *, integer *), zpotrf_(char *, 
00126              integer *, doublecomplex *, integer *, integer *), 
00127             zpotri_(char *, integer *, doublecomplex *, integer *, integer *), zpotrs_(char *, integer *, integer *, doublecomplex *, 
00128             integer *, doublecomplex *, integer *, integer *);
00129 
00130     /* Fortran I/O blocks */
00131     static cilist io___33 = { 0, 0, 0, fmt_9999, 0 };
00132     static cilist io___36 = { 0, 0, 0, fmt_9998, 0 };
00133     static cilist io___38 = { 0, 0, 0, fmt_9997, 0 };
00134 
00135 
00136 
00137 /*  -- LAPACK test routine (version 3.1) -- */
00138 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00139 /*     November 2006 */
00140 
00141 /*     .. Scalar Arguments .. */
00142 /*     .. */
00143 /*     .. Array Arguments .. */
00144 /*     .. */
00145 
00146 /*  Purpose */
00147 /*  ======= */
00148 
00149 /*  ZCHKPO tests ZPOTRF, -TRI, -TRS, -RFS, and -CON */
00150 
00151 /*  Arguments */
00152 /*  ========= */
00153 
00154 /*  DOTYPE  (input) LOGICAL array, dimension (NTYPES) */
00155 /*          The matrix types to be used for testing.  Matrices of type j */
00156 /*          (for 1 <= j <= NTYPES) are used for testing if DOTYPE(j) = */
00157 /*          .TRUE.; if DOTYPE(j) = .FALSE., then type j is not used. */
00158 
00159 /*  NN      (input) INTEGER */
00160 /*          The number of values of N contained in the vector NVAL. */
00161 
00162 /*  NVAL    (input) INTEGER array, dimension (NN) */
00163 /*          The values of the matrix dimension N. */
00164 
00165 /*  NNB     (input) INTEGER */
00166 /*          The number of values of NB contained in the vector NBVAL. */
00167 
00168 /*  NBVAL   (input) INTEGER array, dimension (NBVAL) */
00169 /*          The values of the blocksize NB. */
00170 
00171 /*  NNS     (input) INTEGER */
00172 /*          The number of values of NRHS contained in the vector NSVAL. */
00173 
00174 /*  NSVAL   (input) INTEGER array, dimension (NNS) */
00175 /*          The values of the number of right hand sides NRHS. */
00176 
00177 /*  THRESH  (input) DOUBLE PRECISION */
00178 /*          The threshold value for the test ratios.  A result is */
00179 /*          included in the output file if RESULT >= THRESH.  To have */
00180 /*          every test ratio printed, use THRESH = 0. */
00181 
00182 /*  TSTERR  (input) LOGICAL */
00183 /*          Flag that indicates whether error exits are to be tested. */
00184 
00185 /*  NMAX    (input) INTEGER */
00186 /*          The maximum value permitted for N, used in dimensioning the */
00187 /*          work arrays. */
00188 
00189 /*  A       (workspace) COMPLEX*16 array, dimension (NMAX*NMAX) */
00190 
00191 /*  AFAC    (workspace) COMPLEX*16 array, dimension (NMAX*NMAX) */
00192 
00193 /*  AINV    (workspace) COMPLEX*16 array, dimension (NMAX*NMAX) */
00194 
00195 /*  B       (workspace) COMPLEX*16 array, dimension (NMAX*NSMAX) */
00196 /*          where NSMAX is the largest entry in NSVAL. */
00197 
00198 /*  X       (workspace) COMPLEX*16 array, dimension (NMAX*NSMAX) */
00199 
00200 /*  XACT    (workspace) COMPLEX*16 array, dimension (NMAX*NSMAX) */
00201 
00202 /*  WORK    (workspace) COMPLEX*16 array, dimension */
00203 /*                      (NMAX*max(3,NSMAX)) */
00204 
00205 /*  RWORK   (workspace) DOUBLE PRECISION array, dimension */
00206 /*                      (NMAX+2*NSMAX) */
00207 
00208 /*  NOUT    (input) INTEGER */
00209 /*          The unit number for output. */
00210 
00211 /*  ===================================================================== */
00212 
00213 /*     .. Parameters .. */
00214 /*     .. */
00215 /*     .. Local Scalars .. */
00216 /*     .. */
00217 /*     .. Local Arrays .. */
00218 /*     .. */
00219 /*     .. External Functions .. */
00220 /*     .. */
00221 /*     .. External Subroutines .. */
00222 /*     .. */
00223 /*     .. Scalars in Common .. */
00224 /*     .. */
00225 /*     .. Common blocks .. */
00226 /*     .. */
00227 /*     .. Intrinsic Functions .. */
00228 /*     .. */
00229 /*     .. Data statements .. */
00230     /* Parameter adjustments */
00231     --rwork;
00232     --work;
00233     --xact;
00234     --x;
00235     --b;
00236     --ainv;
00237     --afac;
00238     --a;
00239     --nsval;
00240     --nbval;
00241     --nval;
00242     --dotype;
00243 
00244     /* Function Body */
00245 /*     .. */
00246 /*     .. Executable Statements .. */
00247 
00248 /*     Initialize constants and the random number seed. */
00249 
00250     s_copy(path, "Zomplex precision", (ftnlen)1, (ftnlen)17);
00251     s_copy(path + 1, "PO", (ftnlen)2, (ftnlen)2);
00252     nrun = 0;
00253     nfail = 0;
00254     nerrs = 0;
00255     for (i__ = 1; i__ <= 4; ++i__) {
00256         iseed[i__ - 1] = iseedy[i__ - 1];
00257 /* L10: */
00258     }
00259 
00260 /*     Test the error exits */
00261 
00262     if (*tsterr) {
00263         zerrpo_(path, nout);
00264     }
00265     infoc_1.infot = 0;
00266 
00267 /*     Do for each value of N in NVAL */
00268 
00269     i__1 = *nn;
00270     for (in = 1; in <= i__1; ++in) {
00271         n = nval[in];
00272         lda = max(n,1);
00273         *(unsigned char *)xtype = 'N';
00274         nimat = 9;
00275         if (n <= 0) {
00276             nimat = 1;
00277         }
00278 
00279         izero = 0;
00280         i__2 = nimat;
00281         for (imat = 1; imat <= i__2; ++imat) {
00282 
00283 /*           Do the tests only if DOTYPE( IMAT ) is true. */
00284 
00285             if (! dotype[imat]) {
00286                 goto L110;
00287             }
00288 
00289 /*           Skip types 3, 4, or 5 if the matrix size is too small. */
00290 
00291             zerot = imat >= 3 && imat <= 5;
00292             if (zerot && n < imat - 2) {
00293                 goto L110;
00294             }
00295 
00296 /*           Do first for UPLO = 'U', then for UPLO = 'L' */
00297 
00298             for (iuplo = 1; iuplo <= 2; ++iuplo) {
00299                 *(unsigned char *)uplo = *(unsigned char *)&uplos[iuplo - 1];
00300 
00301 /*              Set up parameters with ZLATB4 and generate a test matrix */
00302 /*              with ZLATMS. */
00303 
00304                 zlatb4_(path, &imat, &n, &n, type__, &kl, &ku, &anorm, &mode, 
00305                         &cndnum, dist);
00306 
00307                 s_copy(srnamc_1.srnamt, "ZLATMS", (ftnlen)32, (ftnlen)6);
00308                 zlatms_(&n, &n, dist, iseed, type__, &rwork[1], &mode, &
00309                         cndnum, &anorm, &kl, &ku, uplo, &a[1], &lda, &work[1], 
00310                          &info);
00311 
00312 /*              Check error code from ZLATMS. */
00313 
00314                 if (info != 0) {
00315                     alaerh_(path, "ZLATMS", &info, &c__0, uplo, &n, &n, &c_n1, 
00316                              &c_n1, &c_n1, &imat, &nfail, &nerrs, nout);
00317                     goto L100;
00318                 }
00319 
00320 /*              For types 3-5, zero one row and column of the matrix to */
00321 /*              test that INFO is returned correctly. */
00322 
00323                 if (zerot) {
00324                     if (imat == 3) {
00325                         izero = 1;
00326                     } else if (imat == 4) {
00327                         izero = n;
00328                     } else {
00329                         izero = n / 2 + 1;
00330                     }
00331                     ioff = (izero - 1) * lda;
00332 
00333 /*                 Set row and column IZERO of A to 0. */
00334 
00335                     if (iuplo == 1) {
00336                         i__3 = izero - 1;
00337                         for (i__ = 1; i__ <= i__3; ++i__) {
00338                             i__4 = ioff + i__;
00339                             a[i__4].r = 0., a[i__4].i = 0.;
00340 /* L20: */
00341                         }
00342                         ioff += izero;
00343                         i__3 = n;
00344                         for (i__ = izero; i__ <= i__3; ++i__) {
00345                             i__4 = ioff;
00346                             a[i__4].r = 0., a[i__4].i = 0.;
00347                             ioff += lda;
00348 /* L30: */
00349                         }
00350                     } else {
00351                         ioff = izero;
00352                         i__3 = izero - 1;
00353                         for (i__ = 1; i__ <= i__3; ++i__) {
00354                             i__4 = ioff;
00355                             a[i__4].r = 0., a[i__4].i = 0.;
00356                             ioff += lda;
00357 /* L40: */
00358                         }
00359                         ioff -= izero;
00360                         i__3 = n;
00361                         for (i__ = izero; i__ <= i__3; ++i__) {
00362                             i__4 = ioff + i__;
00363                             a[i__4].r = 0., a[i__4].i = 0.;
00364 /* L50: */
00365                         }
00366                     }
00367                 } else {
00368                     izero = 0;
00369                 }
00370 
00371 /*              Set the imaginary part of the diagonals. */
00372 
00373                 i__3 = lda + 1;
00374                 zlaipd_(&n, &a[1], &i__3, &c__0);
00375 
00376 /*              Do for each value of NB in NBVAL */
00377 
00378                 i__3 = *nnb;
00379                 for (inb = 1; inb <= i__3; ++inb) {
00380                     nb = nbval[inb];
00381                     xlaenv_(&c__1, &nb);
00382 
00383 /*                 Compute the L*L' or U'*U factorization of the matrix. */
00384 
00385                     zlacpy_(uplo, &n, &n, &a[1], &lda, &afac[1], &lda);
00386                     s_copy(srnamc_1.srnamt, "ZPOTRF", (ftnlen)32, (ftnlen)6);
00387                     zpotrf_(uplo, &n, &afac[1], &lda, &info);
00388 
00389 /*                 Check error code from ZPOTRF. */
00390 
00391                     if (info != izero) {
00392                         alaerh_(path, "ZPOTRF", &info, &izero, uplo, &n, &n, &
00393                                 c_n1, &c_n1, &nb, &imat, &nfail, &nerrs, nout);
00394                         goto L90;
00395                     }
00396 
00397 /*                 Skip the tests if INFO is not 0. */
00398 
00399                     if (info != 0) {
00400                         goto L90;
00401                     }
00402 
00403 /* +    TEST 1 */
00404 /*                 Reconstruct matrix from factors and compute residual. */
00405 
00406                     zlacpy_(uplo, &n, &n, &afac[1], &lda, &ainv[1], &lda);
00407                     zpot01_(uplo, &n, &a[1], &lda, &ainv[1], &lda, &rwork[1], 
00408                             result);
00409 
00410 /* +    TEST 2 */
00411 /*                 Form the inverse and compute the residual. */
00412 
00413                     zlacpy_(uplo, &n, &n, &afac[1], &lda, &ainv[1], &lda);
00414                     s_copy(srnamc_1.srnamt, "ZPOTRI", (ftnlen)32, (ftnlen)6);
00415                     zpotri_(uplo, &n, &ainv[1], &lda, &info);
00416 
00417 /*                 Check error code from ZPOTRI. */
00418 
00419                     if (info != 0) {
00420                         alaerh_(path, "ZPOTRI", &info, &c__0, uplo, &n, &n, &
00421                                 c_n1, &c_n1, &c_n1, &imat, &nfail, &nerrs, 
00422                                 nout);
00423                     }
00424 
00425                     zpot03_(uplo, &n, &a[1], &lda, &ainv[1], &lda, &work[1], &
00426                             lda, &rwork[1], &rcondc, &result[1]);
00427 
00428 /*                 Print information about the tests that did not pass */
00429 /*                 the threshold. */
00430 
00431                     for (k = 1; k <= 2; ++k) {
00432                         if (result[k - 1] >= *thresh) {
00433                             if (nfail == 0 && nerrs == 0) {
00434                                 alahd_(nout, path);
00435                             }
00436                             io___33.ciunit = *nout;
00437                             s_wsfe(&io___33);
00438                             do_fio(&c__1, uplo, (ftnlen)1);
00439                             do_fio(&c__1, (char *)&n, (ftnlen)sizeof(integer))
00440                                     ;
00441                             do_fio(&c__1, (char *)&nb, (ftnlen)sizeof(integer)
00442                                     );
00443                             do_fio(&c__1, (char *)&imat, (ftnlen)sizeof(
00444                                     integer));
00445                             do_fio(&c__1, (char *)&k, (ftnlen)sizeof(integer))
00446                                     ;
00447                             do_fio(&c__1, (char *)&result[k - 1], (ftnlen)
00448                                     sizeof(doublereal));
00449                             e_wsfe();
00450                             ++nfail;
00451                         }
00452 /* L60: */
00453                     }
00454                     nrun += 2;
00455 
00456 /*                 Skip the rest of the tests unless this is the first */
00457 /*                 blocksize. */
00458 
00459                     if (inb != 1) {
00460                         goto L90;
00461                     }
00462 
00463                     i__4 = *nns;
00464                     for (irhs = 1; irhs <= i__4; ++irhs) {
00465                         nrhs = nsval[irhs];
00466 
00467 /* +    TEST 3 */
00468 /*                 Solve and compute residual for A * X = B . */
00469 
00470                         s_copy(srnamc_1.srnamt, "ZLARHS", (ftnlen)32, (ftnlen)
00471                                 6);
00472                         zlarhs_(path, xtype, uplo, " ", &n, &n, &kl, &ku, &
00473                                 nrhs, &a[1], &lda, &xact[1], &lda, &b[1], &
00474                                 lda, iseed, &info);
00475                         zlacpy_("Full", &n, &nrhs, &b[1], &lda, &x[1], &lda);
00476 
00477                         s_copy(srnamc_1.srnamt, "ZPOTRS", (ftnlen)32, (ftnlen)
00478                                 6);
00479                         zpotrs_(uplo, &n, &nrhs, &afac[1], &lda, &x[1], &lda, 
00480                                 &info);
00481 
00482 /*                 Check error code from ZPOTRS. */
00483 
00484                         if (info != 0) {
00485                             alaerh_(path, "ZPOTRS", &info, &c__0, uplo, &n, &
00486                                     n, &c_n1, &c_n1, &nrhs, &imat, &nfail, &
00487                                     nerrs, nout);
00488                         }
00489 
00490                         zlacpy_("Full", &n, &nrhs, &b[1], &lda, &work[1], &
00491                                 lda);
00492                         zpot02_(uplo, &n, &nrhs, &a[1], &lda, &x[1], &lda, &
00493                                 work[1], &lda, &rwork[1], &result[2]);
00494 
00495 /* +    TEST 4 */
00496 /*                 Check solution from generated exact solution. */
00497 
00498                         zget04_(&n, &nrhs, &x[1], &lda, &xact[1], &lda, &
00499                                 rcondc, &result[3]);
00500 
00501 /* +    TESTS 5, 6, and 7 */
00502 /*                 Use iterative refinement to improve the solution. */
00503 
00504                         s_copy(srnamc_1.srnamt, "ZPORFS", (ftnlen)32, (ftnlen)
00505                                 6);
00506                         zporfs_(uplo, &n, &nrhs, &a[1], &lda, &afac[1], &lda, 
00507                                 &b[1], &lda, &x[1], &lda, &rwork[1], &rwork[
00508                                 nrhs + 1], &work[1], &rwork[(nrhs << 1) + 1], 
00509                                 &info);
00510 
00511 /*                 Check error code from ZPORFS. */
00512 
00513                         if (info != 0) {
00514                             alaerh_(path, "ZPORFS", &info, &c__0, uplo, &n, &
00515                                     n, &c_n1, &c_n1, &nrhs, &imat, &nfail, &
00516                                     nerrs, nout);
00517                         }
00518 
00519                         zget04_(&n, &nrhs, &x[1], &lda, &xact[1], &lda, &
00520                                 rcondc, &result[4]);
00521                         zpot05_(uplo, &n, &nrhs, &a[1], &lda, &b[1], &lda, &x[
00522                                 1], &lda, &xact[1], &lda, &rwork[1], &rwork[
00523                                 nrhs + 1], &result[5]);
00524 
00525 /*                    Print information about the tests that did not pass */
00526 /*                    the threshold. */
00527 
00528                         for (k = 3; k <= 7; ++k) {
00529                             if (result[k - 1] >= *thresh) {
00530                                 if (nfail == 0 && nerrs == 0) {
00531                                     alahd_(nout, path);
00532                                 }
00533                                 io___36.ciunit = *nout;
00534                                 s_wsfe(&io___36);
00535                                 do_fio(&c__1, uplo, (ftnlen)1);
00536                                 do_fio(&c__1, (char *)&n, (ftnlen)sizeof(
00537                                         integer));
00538                                 do_fio(&c__1, (char *)&nrhs, (ftnlen)sizeof(
00539                                         integer));
00540                                 do_fio(&c__1, (char *)&imat, (ftnlen)sizeof(
00541                                         integer));
00542                                 do_fio(&c__1, (char *)&k, (ftnlen)sizeof(
00543                                         integer));
00544                                 do_fio(&c__1, (char *)&result[k - 1], (ftnlen)
00545                                         sizeof(doublereal));
00546                                 e_wsfe();
00547                                 ++nfail;
00548                             }
00549 /* L70: */
00550                         }
00551                         nrun += 5;
00552 /* L80: */
00553                     }
00554 
00555 /* +    TEST 8 */
00556 /*                 Get an estimate of RCOND = 1/CNDNUM. */
00557 
00558                     anorm = zlanhe_("1", uplo, &n, &a[1], &lda, &rwork[1]);
00559                     s_copy(srnamc_1.srnamt, "ZPOCON", (ftnlen)32, (ftnlen)6);
00560                     zpocon_(uplo, &n, &afac[1], &lda, &anorm, &rcond, &work[1]
00561 , &rwork[1], &info);
00562 
00563 /*                 Check error code from ZPOCON. */
00564 
00565                     if (info != 0) {
00566                         alaerh_(path, "ZPOCON", &info, &c__0, uplo, &n, &n, &
00567                                 c_n1, &c_n1, &c_n1, &imat, &nfail, &nerrs, 
00568                                 nout);
00569                     }
00570 
00571                     result[7] = dget06_(&rcond, &rcondc);
00572 
00573 /*                 Print the test ratio if it is .GE. THRESH. */
00574 
00575                     if (result[7] >= *thresh) {
00576                         if (nfail == 0 && nerrs == 0) {
00577                             alahd_(nout, path);
00578                         }
00579                         io___38.ciunit = *nout;
00580                         s_wsfe(&io___38);
00581                         do_fio(&c__1, uplo, (ftnlen)1);
00582                         do_fio(&c__1, (char *)&n, (ftnlen)sizeof(integer));
00583                         do_fio(&c__1, (char *)&imat, (ftnlen)sizeof(integer));
00584                         do_fio(&c__1, (char *)&c__8, (ftnlen)sizeof(integer));
00585                         do_fio(&c__1, (char *)&result[7], (ftnlen)sizeof(
00586                                 doublereal));
00587                         e_wsfe();
00588                         ++nfail;
00589                     }
00590                     ++nrun;
00591 L90:
00592                     ;
00593                 }
00594 L100:
00595                 ;
00596             }
00597 L110:
00598             ;
00599         }
00600 /* L120: */
00601     }
00602 
00603 /*     Print a summary of the results. */
00604 
00605     alasum_(path, nout, &nfail, &nrun, &nerrs);
00606 
00607     return 0;
00608 
00609 /*     End of ZCHKPO */
00610 
00611 } /* zchkpo_ */


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