sdrvsp.c
Go to the documentation of this file.
00001 /* sdrvsp.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 real c_b59 = 0.f;
00037 static integer c__2 = 2;
00038 
00039 /* Subroutine */ int sdrvsp_(logical *dotype, integer *nn, integer *nval, 
00040         integer *nrhs, real *thresh, logical *tsterr, integer *nmax, real *a, 
00041         real *afac, real *ainv, real *b, real *x, real *xact, real *work, 
00042         real *rwork, integer *iwork, integer *nout)
00043 {
00044     /* Initialized data */
00045 
00046     static integer iseedy[4] = { 1988,1989,1990,1991 };
00047     static char facts[1*2] = "F" "N";
00048 
00049     /* Format strings */
00050     static char fmt_9999[] = "(1x,a,\002, UPLO='\002,a1,\002', N =\002,i5"
00051             ",\002, type \002,i2,\002, test \002,i2,\002, ratio =\002,g12.5)";
00052     static char fmt_9998[] = "(1x,a,\002, FACT='\002,a1,\002', UPLO='\002,"
00053             "a1,\002', N =\002,i5,\002, type \002,i2,\002, test \002,i2,\002,"
00054             " ratio =\002,g12.5)";
00055 
00056     /* System generated locals */
00057     address a__1[2];
00058     integer i__1, i__2, i__3, i__4, i__5[2];
00059     char ch__1[2];
00060 
00061     /* Builtin functions */
00062     /* Subroutine */ int s_copy(char *, char *, ftnlen, ftnlen);
00063     integer s_wsfe(cilist *), do_fio(integer *, char *, ftnlen), e_wsfe(void);
00064     /* Subroutine */ int s_cat(char *, char **, integer *, integer *, ftnlen);
00065 
00066     /* Local variables */
00067     integer i__, j, k, n, i1, i2, k1, in, kl, ku, nt, lda, npp;
00068     char fact[1];
00069     integer ioff, mode, imat, info;
00070     char path[3], dist[1], uplo[1], type__[1];
00071     integer nrun, ifact, nfail, iseed[4];
00072     real rcond;
00073     extern /* Subroutine */ int sget04_(integer *, integer *, real *, integer 
00074             *, real *, integer *, real *, real *);
00075     integer nimat;
00076     extern doublereal sget06_(real *, real *);
00077     real anorm;
00078     integer iuplo, izero, nerrs;
00079     extern /* Subroutine */ int sppt02_(char *, integer *, integer *, real *, 
00080             real *, integer *, real *, integer *, real *, real *), 
00081             scopy_(integer *, real *, integer *, real *, integer *);
00082     integer lwork;
00083     extern /* Subroutine */ int sppt05_(char *, integer *, integer *, real *, 
00084             real *, integer *, real *, integer *, real *, integer *, real *, 
00085             real *, real *), sspt01_(char *, integer *, real *, real *
00086 , integer *, real *, integer *, real *, real *);
00087     logical zerot;
00088     char xtype[1];
00089     extern /* Subroutine */ int sspsv_(char *, integer *, integer *, real *, 
00090             integer *, real *, integer *, integer *), slatb4_(char *, 
00091             integer *, integer *, integer *, char *, integer *, integer *, 
00092             real *, integer *, real *, char *), 
00093             aladhd_(integer *, char *), alaerh_(char *, char *, 
00094             integer *, integer *, char *, integer *, integer *, integer *, 
00095             integer *, integer *, integer *, integer *, integer *, integer *);
00096     real rcondc;
00097     char packit[1];
00098     extern /* Subroutine */ int alasvm_(char *, integer *, integer *, integer 
00099             *, integer *);
00100     real cndnum, ainvnm;
00101     extern /* Subroutine */ int slacpy_(char *, integer *, integer *, real *, 
00102             integer *, real *, integer *), slarhs_(char *, char *, 
00103             char *, char *, integer *, integer *, integer *, integer *, 
00104             integer *, real *, integer *, real *, integer *, real *, integer *
00105 , integer *, integer *), slaset_(
00106             char *, integer *, integer *, real *, real *, real *, integer *);
00107     extern doublereal slansp_(char *, char *, integer *, real *, real *);
00108     extern /* Subroutine */ int slatms_(integer *, integer *, char *, integer 
00109             *, char *, real *, integer *, real *, real *, integer *, integer *
00110 , char *, real *, integer *, real *, integer *);
00111     real result[6];
00112     extern /* Subroutine */ int ssptrf_(char *, integer *, real *, integer *, 
00113             integer *), ssptri_(char *, integer *, real *, integer *, 
00114             real *, integer *), serrvx_(char *, integer *), 
00115             sspsvx_(char *, char *, integer *, integer *, real *, real *, 
00116             integer *, real *, integer *, real *, integer *, real *, real *, 
00117             real *, real *, integer *, integer *);
00118 
00119     /* Fortran I/O blocks */
00120     static cilist io___41 = { 0, 0, 0, fmt_9999, 0 };
00121     static cilist io___44 = { 0, 0, 0, fmt_9998, 0 };
00122 
00123 
00124 
00125 /*  -- LAPACK test routine (version 3.1) -- */
00126 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00127 /*     November 2006 */
00128 
00129 /*     .. Scalar Arguments .. */
00130 /*     .. */
00131 /*     .. Array Arguments .. */
00132 /*     .. */
00133 
00134 /*  Purpose */
00135 /*  ======= */
00136 
00137 /*  SDRVSP tests the driver routines SSPSV and -SVX. */
00138 
00139 /*  Arguments */
00140 /*  ========= */
00141 
00142 /*  DOTYPE  (input) LOGICAL array, dimension (NTYPES) */
00143 /*          The matrix types to be used for testing.  Matrices of type j */
00144 /*          (for 1 <= j <= NTYPES) are used for testing if DOTYPE(j) = */
00145 /*          .TRUE.; if DOTYPE(j) = .FALSE., then type j is not used. */
00146 
00147 /*  NN      (input) INTEGER */
00148 /*          The number of values of N contained in the vector NVAL. */
00149 
00150 /*  NVAL    (input) INTEGER array, dimension (NN) */
00151 /*          The values of the matrix dimension N. */
00152 
00153 /*  NRHS    (input) INTEGER */
00154 /*          The number of right hand side vectors to be generated for */
00155 /*          each linear system. */
00156 
00157 /*  THRESH  (input) REAL */
00158 /*          The threshold value for the test ratios.  A result is */
00159 /*          included in the output file if RESULT >= THRESH.  To have */
00160 /*          every test ratio printed, use THRESH = 0. */
00161 
00162 /*  TSTERR  (input) LOGICAL */
00163 /*          Flag that indicates whether error exits are to be tested. */
00164 
00165 /*  NMAX    (input) INTEGER */
00166 /*          The maximum value permitted for N, used in dimensioning the */
00167 /*          work arrays. */
00168 
00169 /*  A       (workspace) REAL array, dimension */
00170 /*                      (NMAX*(NMAX+1)/2) */
00171 
00172 /*  AFAC    (workspace) REAL array, dimension */
00173 /*                      (NMAX*(NMAX+1)/2) */
00174 
00175 /*  AINV    (workspace) REAL array, dimension */
00176 /*                      (NMAX*(NMAX+1)/2) */
00177 
00178 /*  B       (workspace) REAL array, dimension (NMAX*NRHS) */
00179 
00180 /*  X       (workspace) REAL array, dimension (NMAX*NRHS) */
00181 
00182 /*  XACT    (workspace) REAL array, dimension (NMAX*NRHS) */
00183 
00184 /*  WORK    (workspace) REAL array, dimension */
00185 /*                      (NMAX*max(2,NRHS)) */
00186 
00187 /*  RWORK   (workspace) REAL array, dimension (NMAX+2*NRHS) */
00188 
00189 /*  IWORK   (workspace) INTEGER array, dimension (2*NMAX) */
00190 
00191 /*  NOUT    (input) INTEGER */
00192 /*          The unit number for output. */
00193 
00194 /*  ===================================================================== */
00195 
00196 /*     .. Parameters .. */
00197 /*     .. */
00198 /*     .. Local Scalars .. */
00199 /*     .. */
00200 /*     .. Local Arrays .. */
00201 /*     .. */
00202 /*     .. External Functions .. */
00203 /*     .. */
00204 /*     .. External Subroutines .. */
00205 /*     .. */
00206 /*     .. Scalars in Common .. */
00207 /*     .. */
00208 /*     .. Common blocks .. */
00209 /*     .. */
00210 /*     .. Intrinsic Functions .. */
00211 /*     .. */
00212 /*     .. Data statements .. */
00213     /* Parameter adjustments */
00214     --iwork;
00215     --rwork;
00216     --work;
00217     --xact;
00218     --x;
00219     --b;
00220     --ainv;
00221     --afac;
00222     --a;
00223     --nval;
00224     --dotype;
00225 
00226     /* Function Body */
00227 /*     .. */
00228 /*     .. Executable Statements .. */
00229 
00230 /*     Initialize constants and the random number seed. */
00231 
00232     s_copy(path, "Single precision", (ftnlen)1, (ftnlen)16);
00233     s_copy(path + 1, "SP", (ftnlen)2, (ftnlen)2);
00234     nrun = 0;
00235     nfail = 0;
00236     nerrs = 0;
00237     for (i__ = 1; i__ <= 4; ++i__) {
00238         iseed[i__ - 1] = iseedy[i__ - 1];
00239 /* L10: */
00240     }
00241 /* Computing MAX */
00242     i__1 = *nmax << 1, i__2 = *nmax * *nrhs;
00243     lwork = max(i__1,i__2);
00244 
00245 /*     Test the error exits */
00246 
00247     if (*tsterr) {
00248         serrvx_(path, nout);
00249     }
00250     infoc_1.infot = 0;
00251 
00252 /*     Do for each value of N in NVAL */
00253 
00254     i__1 = *nn;
00255     for (in = 1; in <= i__1; ++in) {
00256         n = nval[in];
00257         lda = max(n,1);
00258         npp = n * (n + 1) / 2;
00259         *(unsigned char *)xtype = 'N';
00260         nimat = 10;
00261         if (n <= 0) {
00262             nimat = 1;
00263         }
00264 
00265         i__2 = nimat;
00266         for (imat = 1; imat <= i__2; ++imat) {
00267 
00268 /*           Do the tests only if DOTYPE( IMAT ) is true. */
00269 
00270             if (! dotype[imat]) {
00271                 goto L170;
00272             }
00273 
00274 /*           Skip types 3, 4, 5, or 6 if the matrix size is too small. */
00275 
00276             zerot = imat >= 3 && imat <= 6;
00277             if (zerot && n < imat - 2) {
00278                 goto L170;
00279             }
00280 
00281 /*           Do first for UPLO = 'U', then for UPLO = 'L' */
00282 
00283             for (iuplo = 1; iuplo <= 2; ++iuplo) {
00284                 if (iuplo == 1) {
00285                     *(unsigned char *)uplo = 'U';
00286                     *(unsigned char *)packit = 'C';
00287                 } else {
00288                     *(unsigned char *)uplo = 'L';
00289                     *(unsigned char *)packit = 'R';
00290                 }
00291 
00292 /*              Set up parameters with SLATB4 and generate a test matrix */
00293 /*              with SLATMS. */
00294 
00295                 slatb4_(path, &imat, &n, &n, type__, &kl, &ku, &anorm, &mode, 
00296                         &cndnum, dist);
00297 
00298                 s_copy(srnamc_1.srnamt, "SLATMS", (ftnlen)32, (ftnlen)6);
00299                 slatms_(&n, &n, dist, iseed, type__, &rwork[1], &mode, &
00300                         cndnum, &anorm, &kl, &ku, packit, &a[1], &lda, &work[
00301                         1], &info);
00302 
00303 /*              Check error code from SLATMS. */
00304 
00305                 if (info != 0) {
00306                     alaerh_(path, "SLATMS", &info, &c__0, uplo, &n, &n, &c_n1, 
00307                              &c_n1, &c_n1, &imat, &nfail, &nerrs, nout);
00308                     goto L160;
00309                 }
00310 
00311 /*              For types 3-6, zero one or more rows and columns of the */
00312 /*              matrix to test that INFO is returned correctly. */
00313 
00314                 if (zerot) {
00315                     if (imat == 3) {
00316                         izero = 1;
00317                     } else if (imat == 4) {
00318                         izero = n;
00319                     } else {
00320                         izero = n / 2 + 1;
00321                     }
00322 
00323                     if (imat < 6) {
00324 
00325 /*                    Set row and column IZERO to zero. */
00326 
00327                         if (iuplo == 1) {
00328                             ioff = (izero - 1) * izero / 2;
00329                             i__3 = izero - 1;
00330                             for (i__ = 1; i__ <= i__3; ++i__) {
00331                                 a[ioff + i__] = 0.f;
00332 /* L20: */
00333                             }
00334                             ioff += izero;
00335                             i__3 = n;
00336                             for (i__ = izero; i__ <= i__3; ++i__) {
00337                                 a[ioff] = 0.f;
00338                                 ioff += i__;
00339 /* L30: */
00340                             }
00341                         } else {
00342                             ioff = izero;
00343                             i__3 = izero - 1;
00344                             for (i__ = 1; i__ <= i__3; ++i__) {
00345                                 a[ioff] = 0.f;
00346                                 ioff = ioff + n - i__;
00347 /* L40: */
00348                             }
00349                             ioff -= izero;
00350                             i__3 = n;
00351                             for (i__ = izero; i__ <= i__3; ++i__) {
00352                                 a[ioff + i__] = 0.f;
00353 /* L50: */
00354                             }
00355                         }
00356                     } else {
00357                         ioff = 0;
00358                         if (iuplo == 1) {
00359 
00360 /*                       Set the first IZERO rows and columns to zero. */
00361 
00362                             i__3 = n;
00363                             for (j = 1; j <= i__3; ++j) {
00364                                 i2 = min(j,izero);
00365                                 i__4 = i2;
00366                                 for (i__ = 1; i__ <= i__4; ++i__) {
00367                                     a[ioff + i__] = 0.f;
00368 /* L60: */
00369                                 }
00370                                 ioff += j;
00371 /* L70: */
00372                             }
00373                         } else {
00374 
00375 /*                       Set the last IZERO rows and columns to zero. */
00376 
00377                             i__3 = n;
00378                             for (j = 1; j <= i__3; ++j) {
00379                                 i1 = max(j,izero);
00380                                 i__4 = n;
00381                                 for (i__ = i1; i__ <= i__4; ++i__) {
00382                                     a[ioff + i__] = 0.f;
00383 /* L80: */
00384                                 }
00385                                 ioff = ioff + n - j;
00386 /* L90: */
00387                             }
00388                         }
00389                     }
00390                 } else {
00391                     izero = 0;
00392                 }
00393 
00394                 for (ifact = 1; ifact <= 2; ++ifact) {
00395 
00396 /*                 Do first for FACT = 'F', then for other values. */
00397 
00398                     *(unsigned char *)fact = *(unsigned char *)&facts[ifact - 
00399                             1];
00400 
00401 /*                 Compute the condition number for comparison with */
00402 /*                 the value returned by SSPSVX. */
00403 
00404                     if (zerot) {
00405                         if (ifact == 1) {
00406                             goto L150;
00407                         }
00408                         rcondc = 0.f;
00409 
00410                     } else if (ifact == 1) {
00411 
00412 /*                    Compute the 1-norm of A. */
00413 
00414                         anorm = slansp_("1", uplo, &n, &a[1], &rwork[1]);
00415 
00416 /*                    Factor the matrix A. */
00417 
00418                         scopy_(&npp, &a[1], &c__1, &afac[1], &c__1);
00419                         ssptrf_(uplo, &n, &afac[1], &iwork[1], &info);
00420 
00421 /*                    Compute inv(A) and take its norm. */
00422 
00423                         scopy_(&npp, &afac[1], &c__1, &ainv[1], &c__1);
00424                         ssptri_(uplo, &n, &ainv[1], &iwork[1], &work[1], &
00425                                 info);
00426                         ainvnm = slansp_("1", uplo, &n, &ainv[1], &rwork[1]);
00427 
00428 /*                    Compute the 1-norm condition number of A. */
00429 
00430                         if (anorm <= 0.f || ainvnm <= 0.f) {
00431                             rcondc = 1.f;
00432                         } else {
00433                             rcondc = 1.f / anorm / ainvnm;
00434                         }
00435                     }
00436 
00437 /*                 Form an exact solution and set the right hand side. */
00438 
00439                     s_copy(srnamc_1.srnamt, "SLARHS", (ftnlen)32, (ftnlen)6);
00440                     slarhs_(path, xtype, uplo, " ", &n, &n, &kl, &ku, nrhs, &
00441                             a[1], &lda, &xact[1], &lda, &b[1], &lda, iseed, &
00442                             info);
00443                     *(unsigned char *)xtype = 'C';
00444 
00445 /*                 --- Test SSPSV  --- */
00446 
00447                     if (ifact == 2) {
00448                         scopy_(&npp, &a[1], &c__1, &afac[1], &c__1);
00449                         slacpy_("Full", &n, nrhs, &b[1], &lda, &x[1], &lda);
00450 
00451 /*                    Factor the matrix and solve the system using SSPSV. */
00452 
00453                         s_copy(srnamc_1.srnamt, "SSPSV ", (ftnlen)32, (ftnlen)
00454                                 6);
00455                         sspsv_(uplo, &n, nrhs, &afac[1], &iwork[1], &x[1], &
00456                                 lda, &info);
00457 
00458 /*                    Adjust the expected value of INFO to account for */
00459 /*                    pivoting. */
00460 
00461                         k = izero;
00462                         if (k > 0) {
00463 L100:
00464                             if (iwork[k] < 0) {
00465                                 if (iwork[k] != -k) {
00466                                     k = -iwork[k];
00467                                     goto L100;
00468                                 }
00469                             } else if (iwork[k] != k) {
00470                                 k = iwork[k];
00471                                 goto L100;
00472                             }
00473                         }
00474 
00475 /*                    Check error code from SSPSV . */
00476 
00477                         if (info != k) {
00478                             alaerh_(path, "SSPSV ", &info, &k, uplo, &n, &n, &
00479                                     c_n1, &c_n1, nrhs, &imat, &nfail, &nerrs, 
00480                                     nout);
00481                             goto L120;
00482                         } else if (info != 0) {
00483                             goto L120;
00484                         }
00485 
00486 /*                    Reconstruct matrix from factors and compute */
00487 /*                    residual. */
00488 
00489                         sspt01_(uplo, &n, &a[1], &afac[1], &iwork[1], &ainv[1]
00490 , &lda, &rwork[1], result);
00491 
00492 /*                    Compute residual of the computed solution. */
00493 
00494                         slacpy_("Full", &n, nrhs, &b[1], &lda, &work[1], &lda);
00495                         sppt02_(uplo, &n, nrhs, &a[1], &x[1], &lda, &work[1], 
00496                                 &lda, &rwork[1], &result[1]);
00497 
00498 /*                    Check solution from generated exact solution. */
00499 
00500                         sget04_(&n, nrhs, &x[1], &lda, &xact[1], &lda, &
00501                                 rcondc, &result[2]);
00502                         nt = 3;
00503 
00504 /*                    Print information about the tests that did not pass */
00505 /*                    the threshold. */
00506 
00507                         i__3 = nt;
00508                         for (k = 1; k <= i__3; ++k) {
00509                             if (result[k - 1] >= *thresh) {
00510                                 if (nfail == 0 && nerrs == 0) {
00511                                     aladhd_(nout, path);
00512                                 }
00513                                 io___41.ciunit = *nout;
00514                                 s_wsfe(&io___41);
00515                                 do_fio(&c__1, "SSPSV ", (ftnlen)6);
00516                                 do_fio(&c__1, uplo, (ftnlen)1);
00517                                 do_fio(&c__1, (char *)&n, (ftnlen)sizeof(
00518                                         integer));
00519                                 do_fio(&c__1, (char *)&imat, (ftnlen)sizeof(
00520                                         integer));
00521                                 do_fio(&c__1, (char *)&k, (ftnlen)sizeof(
00522                                         integer));
00523                                 do_fio(&c__1, (char *)&result[k - 1], (ftnlen)
00524                                         sizeof(real));
00525                                 e_wsfe();
00526                                 ++nfail;
00527                             }
00528 /* L110: */
00529                         }
00530                         nrun += nt;
00531 L120:
00532                         ;
00533                     }
00534 
00535 /*                 --- Test SSPSVX --- */
00536 
00537                     if (ifact == 2 && npp > 0) {
00538                         slaset_("Full", &npp, &c__1, &c_b59, &c_b59, &afac[1], 
00539                                  &npp);
00540                     }
00541                     slaset_("Full", &n, nrhs, &c_b59, &c_b59, &x[1], &lda);
00542 
00543 /*                 Solve the system and compute the condition number and */
00544 /*                 error bounds using SSPSVX. */
00545 
00546                     s_copy(srnamc_1.srnamt, "SSPSVX", (ftnlen)32, (ftnlen)6);
00547                     sspsvx_(fact, uplo, &n, nrhs, &a[1], &afac[1], &iwork[1], 
00548                             &b[1], &lda, &x[1], &lda, &rcond, &rwork[1], &
00549                             rwork[*nrhs + 1], &work[1], &iwork[n + 1], &info);
00550 
00551 /*                 Adjust the expected value of INFO to account for */
00552 /*                 pivoting. */
00553 
00554                     k = izero;
00555                     if (k > 0) {
00556 L130:
00557                         if (iwork[k] < 0) {
00558                             if (iwork[k] != -k) {
00559                                 k = -iwork[k];
00560                                 goto L130;
00561                             }
00562                         } else if (iwork[k] != k) {
00563                             k = iwork[k];
00564                             goto L130;
00565                         }
00566                     }
00567 
00568 /*                 Check the error code from SSPSVX. */
00569 
00570                     if (info != k) {
00571 /* Writing concatenation */
00572                         i__5[0] = 1, a__1[0] = fact;
00573                         i__5[1] = 1, a__1[1] = uplo;
00574                         s_cat(ch__1, a__1, i__5, &c__2, (ftnlen)2);
00575                         alaerh_(path, "SSPSVX", &info, &k, ch__1, &n, &n, &
00576                                 c_n1, &c_n1, nrhs, &imat, &nfail, &nerrs, 
00577                                 nout);
00578                         goto L150;
00579                     }
00580 
00581                     if (info == 0) {
00582                         if (ifact >= 2) {
00583 
00584 /*                       Reconstruct matrix from factors and compute */
00585 /*                       residual. */
00586 
00587                             sspt01_(uplo, &n, &a[1], &afac[1], &iwork[1], &
00588                                     ainv[1], &lda, &rwork[(*nrhs << 1) + 1], 
00589                                     result);
00590                             k1 = 1;
00591                         } else {
00592                             k1 = 2;
00593                         }
00594 
00595 /*                    Compute residual of the computed solution. */
00596 
00597                         slacpy_("Full", &n, nrhs, &b[1], &lda, &work[1], &lda);
00598                         sppt02_(uplo, &n, nrhs, &a[1], &x[1], &lda, &work[1], 
00599                                 &lda, &rwork[(*nrhs << 1) + 1], &result[1]);
00600 
00601 /*                    Check solution from generated exact solution. */
00602 
00603                         sget04_(&n, nrhs, &x[1], &lda, &xact[1], &lda, &
00604                                 rcondc, &result[2]);
00605 
00606 /*                    Check the error bounds from iterative refinement. */
00607 
00608                         sppt05_(uplo, &n, nrhs, &a[1], &b[1], &lda, &x[1], &
00609                                 lda, &xact[1], &lda, &rwork[1], &rwork[*nrhs 
00610                                 + 1], &result[3]);
00611                     } else {
00612                         k1 = 6;
00613                     }
00614 
00615 /*                 Compare RCOND from SSPSVX with the computed value */
00616 /*                 in RCONDC. */
00617 
00618                     result[5] = sget06_(&rcond, &rcondc);
00619 
00620 /*                 Print information about the tests that did not pass */
00621 /*                 the threshold. */
00622 
00623                     for (k = k1; k <= 6; ++k) {
00624                         if (result[k - 1] >= *thresh) {
00625                             if (nfail == 0 && nerrs == 0) {
00626                                 aladhd_(nout, path);
00627                             }
00628                             io___44.ciunit = *nout;
00629                             s_wsfe(&io___44);
00630                             do_fio(&c__1, "SSPSVX", (ftnlen)6);
00631                             do_fio(&c__1, fact, (ftnlen)1);
00632                             do_fio(&c__1, uplo, (ftnlen)1);
00633                             do_fio(&c__1, (char *)&n, (ftnlen)sizeof(integer))
00634                                     ;
00635                             do_fio(&c__1, (char *)&imat, (ftnlen)sizeof(
00636                                     integer));
00637                             do_fio(&c__1, (char *)&k, (ftnlen)sizeof(integer))
00638                                     ;
00639                             do_fio(&c__1, (char *)&result[k - 1], (ftnlen)
00640                                     sizeof(real));
00641                             e_wsfe();
00642                             ++nfail;
00643                         }
00644 /* L140: */
00645                     }
00646                     nrun = nrun + 7 - k1;
00647 
00648 L150:
00649                     ;
00650                 }
00651 
00652 L160:
00653                 ;
00654             }
00655 L170:
00656             ;
00657         }
00658 /* L180: */
00659     }
00660 
00661 /*     Print a summary of the results. */
00662 
00663     alasvm_(path, nout, &nfail, &nrun, &nerrs);
00664 
00665     return 0;
00666 
00667 /*     End of SDRVSP */
00668 
00669 } /* sdrvsp_ */


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