LAPACK 3.3.0

cdrvhex.f

Go to the documentation of this file.
00001       SUBROUTINE CDRVHE( DOTYPE, NN, NVAL, NRHS, THRESH, TSTERR, NMAX,
00002      $                   A, AFAC, AINV, B, X, XACT, WORK, RWORK, IWORK,
00003      $                   NOUT )
00004 *
00005 *  -- LAPACK test routine (version 3.2.1) --
00006 *     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
00007 *     April 2009
00008 *
00009 *     .. Scalar Arguments ..
00010       LOGICAL            TSTERR
00011       INTEGER            NMAX, NN, NOUT, NRHS
00012       REAL               THRESH
00013 *     ..
00014 *     .. Array Arguments ..
00015       LOGICAL            DOTYPE( * )
00016       INTEGER            IWORK( * ), NVAL( * )
00017       REAL               RWORK( * )
00018       COMPLEX            A( * ), AFAC( * ), AINV( * ), B( * ),
00019      $                   WORK( * ), X( * ), XACT( * )
00020 *     ..
00021 *
00022 *  Purpose
00023 *  =======
00024 *
00025 *  CDRVHE tests the driver routines CHESV, -SVX, and -SVXX.
00026 *
00027 *  Note that this file is used only when the XBLAS are available,
00028 *  otherwise cdrvhe.f defines this subroutine.
00029 *
00030 *  Arguments
00031 *  =========
00032 *
00033 *  DOTYPE  (input) LOGICAL array, dimension (NTYPES)
00034 *          The matrix types to be used for testing.  Matrices of type j
00035 *          (for 1 <= j <= NTYPES) are used for testing if DOTYPE(j) =
00036 *          .TRUE.; if DOTYPE(j) = .FALSE., then type j is not used.
00037 *
00038 *  NN      (input) INTEGER
00039 *          The number of values of N contained in the vector NVAL.
00040 *
00041 *  NVAL    (input) INTEGER array, dimension (NN)
00042 *          The values of the matrix dimension N.
00043 *
00044 *  NRHS    (input) INTEGER
00045 *          The number of right hand side vectors to be generated for
00046 *          each linear system.
00047 *
00048 *  THRESH  (input) REAL
00049 *          The threshold value for the test ratios.  A result is
00050 *          included in the output file if RESULT >= THRESH.  To have
00051 *          every test ratio printed, use THRESH = 0.
00052 *
00053 *  TSTERR  (input) LOGICAL
00054 *          Flag that indicates whether error exits are to be tested.
00055 *
00056 *  NMAX    (input) INTEGER
00057 *          The maximum value permitted for N, used in dimensioning the
00058 *          work arrays.
00059 *
00060 *  A       (workspace) COMPLEX array, dimension (NMAX*NMAX)
00061 *
00062 *  AFAC    (workspace) COMPLEX array, dimension (NMAX*NMAX)
00063 *
00064 *  AINV    (workspace) COMPLEX array, dimension (NMAX*NMAX)
00065 *
00066 *  B       (workspace) COMPLEX array, dimension (NMAX*NRHS)
00067 *
00068 *  X       (workspace) COMPLEX array, dimension (NMAX*NRHS)
00069 *
00070 *  XACT    (workspace) COMPLEX array, dimension (NMAX*NRHS)
00071 *
00072 *  WORK    (workspace) COMPLEX array, dimension
00073 *                      (NMAX*max(2,NRHS))
00074 *
00075 *  RWORK   (workspace) REAL array, dimension (NMAX+2*NRHS)
00076 *
00077 *  IWORK   (workspace) INTEGER array, dimension (NMAX)
00078 *
00079 *  NOUT    (input) INTEGER
00080 *          The unit number for output.
00081 *
00082 *  =====================================================================
00083 *
00084 *     .. Parameters ..
00085       REAL               ONE, ZERO
00086       PARAMETER          ( ONE = 1.0E+0, ZERO = 0.0E+0 )
00087       INTEGER            NTYPES, NTESTS
00088       PARAMETER          ( NTYPES = 10, NTESTS = 6 )
00089       INTEGER            NFACT
00090       PARAMETER          ( NFACT = 2 )
00091 *     ..
00092 *     .. Local Scalars ..
00093       LOGICAL            ZEROT
00094       CHARACTER          DIST, EQUED, FACT, TYPE, UPLO, XTYPE
00095       CHARACTER*3        PATH
00096       INTEGER            I, I1, I2, IFACT, IMAT, IN, INFO, IOFF, IUPLO,
00097      $                   IZERO, J, K, K1, KL, KU, LDA, LWORK, MODE, N,
00098      $                   NB, NBMIN, NERRS, NFAIL, NIMAT, NRUN, NT,
00099      $                   N_ERR_BNDS
00100       REAL               AINVNM, ANORM, CNDNUM, RCOND, RCONDC,
00101      $                   RPVGRW_SVXX
00102 *     ..
00103 *     .. Local Arrays ..
00104       CHARACTER          FACTS( NFACT ), UPLOS( 2 )
00105       INTEGER            ISEED( 4 ), ISEEDY( 4 )
00106       REAL               RESULT( NTESTS ), BERR( NRHS ),
00107      $                   ERRBNDS_N( NRHS, 3 ), ERRBNDS_C( NRHS, 3 )
00108 *     ..
00109 *     .. External Functions ..
00110       REAL               CLANHE, SGET06
00111       EXTERNAL           CLANHE, SGET06
00112 *     ..
00113 *     .. External Subroutines ..
00114       EXTERNAL           ALADHD, ALAERH, ALASVM, CERRVX, CGET04, CHESV,
00115      $                   CHESVX, CHET01, CHETRF, CHETRI, CLACPY, CLAIPD,
00116      $                   CLARHS, CLASET, CLATB4, CLATMS, CPOT02, CPOT05,
00117      $                   XLAENV, CHESVXX
00118 *     ..
00119 *     .. Scalars in Common ..
00120       LOGICAL            LERR, OK
00121       CHARACTER*32       SRNAMT
00122       INTEGER            INFOT, NUNIT
00123 *     ..
00124 *     .. Common blocks ..
00125       COMMON             / INFOC / INFOT, NUNIT, OK, LERR
00126       COMMON             / SRNAMC / SRNAMT
00127 *     ..
00128 *     .. Intrinsic Functions ..
00129       INTRINSIC          CMPLX, MAX, MIN
00130 *     ..
00131 *     .. Data statements ..
00132       DATA               ISEEDY / 1988, 1989, 1990, 1991 /
00133       DATA               UPLOS / 'U', 'L' / , FACTS / 'F', 'N' /
00134 *     ..
00135 *     .. Executable Statements ..
00136 *
00137 *     Initialize constants and the random number seed.
00138 *
00139       PATH( 1: 1 ) = 'C'
00140       PATH( 2: 3 ) = 'HE'
00141       NRUN = 0
00142       NFAIL = 0
00143       NERRS = 0
00144       DO 10 I = 1, 4
00145          ISEED( I ) = ISEEDY( I )
00146    10 CONTINUE
00147       LWORK = MAX( 2*NMAX, NMAX*NRHS )
00148 *
00149 *     Test the error exits
00150 *
00151       IF( TSTERR )
00152      $   CALL CERRVX( PATH, NOUT )
00153       INFOT = 0
00154 *
00155 *     Set the block size and minimum block size for testing.
00156 *
00157       NB = 1
00158       NBMIN = 2
00159       CALL XLAENV( 1, NB )
00160       CALL XLAENV( 2, NBMIN )
00161 *
00162 *     Do for each value of N in NVAL
00163 *
00164       DO 180 IN = 1, NN
00165          N = NVAL( IN )
00166          LDA = MAX( N, 1 )
00167          XTYPE = 'N'
00168          NIMAT = NTYPES
00169          IF( N.LE.0 )
00170      $      NIMAT = 1
00171 *
00172          DO 170 IMAT = 1, NIMAT
00173 *
00174 *           Do the tests only if DOTYPE( IMAT ) is true.
00175 *
00176             IF( .NOT.DOTYPE( IMAT ) )
00177      $         GO TO 170
00178 *
00179 *           Skip types 3, 4, 5, or 6 if the matrix size is too small.
00180 *
00181             ZEROT = IMAT.GE.3 .AND. IMAT.LE.6
00182             IF( ZEROT .AND. N.LT.IMAT-2 )
00183      $         GO TO 170
00184 *
00185 *           Do first for UPLO = 'U', then for UPLO = 'L'
00186 *
00187             DO 160 IUPLO = 1, 2
00188                UPLO = UPLOS( IUPLO )
00189 *
00190 *              Set up parameters with CLATB4 and generate a test matrix
00191 *              with CLATMS.
00192 *
00193                CALL CLATB4( PATH, IMAT, N, N, TYPE, KL, KU, ANORM, MODE,
00194      $                      CNDNUM, DIST )
00195 *
00196                SRNAMT = 'CLATMS'
00197                CALL CLATMS( N, N, DIST, ISEED, TYPE, RWORK, MODE,
00198      $                      CNDNUM, ANORM, KL, KU, UPLO, A, LDA, WORK,
00199      $                      INFO )
00200 *
00201 *              Check error code from CLATMS.
00202 *
00203                IF( INFO.NE.0 ) THEN
00204                   CALL ALAERH( PATH, 'CLATMS', INFO, 0, UPLO, N, N, -1,
00205      $                         -1, -1, IMAT, NFAIL, NERRS, NOUT )
00206                   GO TO 160
00207                END IF
00208 *
00209 *              For types 3-6, zero one or more rows and columns of the
00210 *              matrix to test that INFO is returned correctly.
00211 *
00212                IF( ZEROT ) THEN
00213                   IF( IMAT.EQ.3 ) THEN
00214                      IZERO = 1
00215                   ELSE IF( IMAT.EQ.4 ) THEN
00216                      IZERO = N
00217                   ELSE
00218                      IZERO = N / 2 + 1
00219                   END IF
00220 *
00221                   IF( IMAT.LT.6 ) THEN
00222 *
00223 *                    Set row and column IZERO to zero.
00224 *
00225                      IF( IUPLO.EQ.1 ) THEN
00226                         IOFF = ( IZERO-1 )*LDA
00227                         DO 20 I = 1, IZERO - 1
00228                            A( IOFF+I ) = ZERO
00229    20                   CONTINUE
00230                         IOFF = IOFF + IZERO
00231                         DO 30 I = IZERO, N
00232                            A( IOFF ) = ZERO
00233                            IOFF = IOFF + LDA
00234    30                   CONTINUE
00235                      ELSE
00236                         IOFF = IZERO
00237                         DO 40 I = 1, IZERO - 1
00238                            A( IOFF ) = ZERO
00239                            IOFF = IOFF + LDA
00240    40                   CONTINUE
00241                         IOFF = IOFF - IZERO
00242                         DO 50 I = IZERO, N
00243                            A( IOFF+I ) = ZERO
00244    50                   CONTINUE
00245                      END IF
00246                   ELSE
00247                      IOFF = 0
00248                      IF( IUPLO.EQ.1 ) THEN
00249 *
00250 *                       Set the first IZERO rows and columns to zero.
00251 *
00252                         DO 70 J = 1, N
00253                            I2 = MIN( J, IZERO )
00254                            DO 60 I = 1, I2
00255                               A( IOFF+I ) = ZERO
00256    60                      CONTINUE
00257                            IOFF = IOFF + LDA
00258    70                   CONTINUE
00259                      ELSE
00260 *
00261 *                       Set the last IZERO rows and columns to zero.
00262 *
00263                         DO 90 J = 1, N
00264                            I1 = MAX( J, IZERO )
00265                            DO 80 I = I1, N
00266                               A( IOFF+I ) = ZERO
00267    80                      CONTINUE
00268                            IOFF = IOFF + LDA
00269    90                   CONTINUE
00270                      END IF
00271                   END IF
00272                ELSE
00273                   IZERO = 0
00274                END IF
00275 *
00276 *              Set the imaginary part of the diagonals.
00277 *
00278                CALL CLAIPD( N, A, LDA+1, 0 )
00279 *
00280                DO 150 IFACT = 1, NFACT
00281 *
00282 *                 Do first for FACT = 'F', then for other values.
00283 *
00284                   FACT = FACTS( IFACT )
00285 *
00286 *                 Compute the condition number for comparison with
00287 *                 the value returned by CHESVX.
00288 *
00289                   IF( ZEROT ) THEN
00290                      IF( IFACT.EQ.1 )
00291      $                  GO TO 150
00292                      RCONDC = ZERO
00293 *
00294                   ELSE IF( IFACT.EQ.1 ) THEN
00295 *
00296 *                    Compute the 1-norm of A.
00297 *
00298                      ANORM = CLANHE( '1', UPLO, N, A, LDA, RWORK )
00299 *
00300 *                    Factor the matrix A.
00301 *
00302                      CALL CLACPY( UPLO, N, N, A, LDA, AFAC, LDA )
00303                      CALL CHETRF( UPLO, N, AFAC, LDA, IWORK, WORK,
00304      $                            LWORK, INFO )
00305 *
00306 *                    Compute inv(A) and take its norm.
00307 *
00308                      CALL CLACPY( UPLO, N, N, AFAC, LDA, AINV, LDA )
00309                      CALL CHETRI( UPLO, N, AINV, LDA, IWORK, WORK,
00310      $                            INFO )
00311                      AINVNM = CLANHE( '1', UPLO, N, AINV, LDA, RWORK )
00312 *
00313 *                    Compute the 1-norm condition number of A.
00314 *
00315                      IF( ANORM.LE.ZERO .OR. AINVNM.LE.ZERO ) THEN
00316                         RCONDC = ONE
00317                      ELSE
00318                         RCONDC = ( ONE / ANORM ) / AINVNM
00319                      END IF
00320                   END IF
00321 *
00322 *                 Form an exact solution and set the right hand side.
00323 *
00324                   SRNAMT = 'CLARHS'
00325                   CALL CLARHS( PATH, XTYPE, UPLO, ' ', N, N, KL, KU,
00326      $                         NRHS, A, LDA, XACT, LDA, B, LDA, ISEED,
00327      $                         INFO )
00328                   XTYPE = 'C'
00329 *
00330 *                 --- Test CHESV  ---
00331 *
00332                   IF( IFACT.EQ.2 ) THEN
00333                      CALL CLACPY( UPLO, N, N, A, LDA, AFAC, LDA )
00334                      CALL CLACPY( 'Full', N, NRHS, B, LDA, X, LDA )
00335 *
00336 *                    Factor the matrix and solve the system using CHESV.
00337 *
00338                      SRNAMT = 'CHESV '
00339                      CALL CHESV( UPLO, N, NRHS, AFAC, LDA, IWORK, X,
00340      $                           LDA, WORK, LWORK, INFO )
00341 *
00342 *                    Adjust the expected value of INFO to account for
00343 *                    pivoting.
00344 *
00345                      K = IZERO
00346                      IF( K.GT.0 ) THEN
00347   100                   CONTINUE
00348                         IF( IWORK( K ).LT.0 ) THEN
00349                            IF( IWORK( K ).NE.-K ) THEN
00350                               K = -IWORK( K )
00351                               GO TO 100
00352                            END IF
00353                         ELSE IF( IWORK( K ).NE.K ) THEN
00354                            K = IWORK( K )
00355                            GO TO 100
00356                         END IF
00357                      END IF
00358 *
00359 *                    Check error code from CHESV .
00360 *
00361                      IF( INFO.NE.K ) THEN
00362                         CALL ALAERH( PATH, 'CHESV ', INFO, K, UPLO, N,
00363      $                               N, -1, -1, NRHS, IMAT, NFAIL,
00364      $                               NERRS, NOUT )
00365                         GO TO 120
00366                      ELSE IF( INFO.NE.0 ) THEN
00367                         GO TO 120
00368                      END IF
00369 *
00370 *                    Reconstruct matrix from factors and compute
00371 *                    residual.
00372 *
00373                      CALL CHET01( UPLO, N, A, LDA, AFAC, LDA, IWORK,
00374      $                            AINV, LDA, RWORK, RESULT( 1 ) )
00375 *
00376 *                    Compute residual of the computed solution.
00377 *
00378                      CALL CLACPY( 'Full', N, NRHS, B, LDA, WORK, LDA )
00379                      CALL CPOT02( UPLO, N, NRHS, A, LDA, X, LDA, WORK,
00380      $                            LDA, RWORK, RESULT( 2 ) )
00381 *
00382 *                    Check solution from generated exact solution.
00383 *
00384                      CALL CGET04( N, NRHS, X, LDA, XACT, LDA, RCONDC,
00385      $                            RESULT( 3 ) )
00386                      NT = 3
00387 *
00388 *                    Print information about the tests that did not pass
00389 *                    the threshold.
00390 *
00391                      DO 110 K = 1, NT
00392                         IF( RESULT( K ).GE.THRESH ) THEN
00393                            IF( NFAIL.EQ.0 .AND. NERRS.EQ.0 )
00394      $                        CALL ALADHD( NOUT, PATH )
00395                            WRITE( NOUT, FMT = 9999 )'CHESV ', UPLO, N,
00396      $                        IMAT, K, RESULT( K )
00397                            NFAIL = NFAIL + 1
00398                         END IF
00399   110                CONTINUE
00400                      NRUN = NRUN + NT
00401   120                CONTINUE
00402                   END IF
00403 *
00404 *                 --- Test CHESVX ---
00405 *
00406                   IF( IFACT.EQ.2 )
00407      $               CALL CLASET( UPLO, N, N, CMPLX( ZERO ),
00408      $                            CMPLX( ZERO ), AFAC, LDA )
00409                   CALL CLASET( 'Full', N, NRHS, CMPLX( ZERO ),
00410      $                         CMPLX( ZERO ), X, LDA )
00411 *
00412 *                 Solve the system and compute the condition number and
00413 *                 error bounds using CHESVX.
00414 *
00415                   SRNAMT = 'CHESVX'
00416                   CALL CHESVX( FACT, UPLO, N, NRHS, A, LDA, AFAC, LDA,
00417      $                         IWORK, B, LDA, X, LDA, RCOND, RWORK,
00418      $                         RWORK( NRHS+1 ), WORK, LWORK,
00419      $                         RWORK( 2*NRHS+1 ), INFO )
00420 *
00421 *                 Adjust the expected value of INFO to account for
00422 *                 pivoting.
00423 *
00424                   K = IZERO
00425                   IF( K.GT.0 ) THEN
00426   130                CONTINUE
00427                      IF( IWORK( K ).LT.0 ) THEN
00428                         IF( IWORK( K ).NE.-K ) THEN
00429                            K = -IWORK( K )
00430                            GO TO 130
00431                         END IF
00432                      ELSE IF( IWORK( K ).NE.K ) THEN
00433                         K = IWORK( K )
00434                         GO TO 130
00435                      END IF
00436                   END IF
00437 *
00438 *                 Check the error code from CHESVX.
00439 *
00440                   IF( INFO.NE.K ) THEN
00441                      CALL ALAERH( PATH, 'CHESVX', INFO, K, FACT // UPLO,
00442      $                            N, N, -1, -1, NRHS, IMAT, NFAIL,
00443      $                            NERRS, NOUT )
00444                      GO TO 150
00445                   END IF
00446 *
00447                   IF( INFO.EQ.0 ) THEN
00448                      IF( IFACT.GE.2 ) THEN
00449 *
00450 *                       Reconstruct matrix from factors and compute
00451 *                       residual.
00452 *
00453                         CALL CHET01( UPLO, N, A, LDA, AFAC, LDA, IWORK,
00454      $                               AINV, LDA, RWORK( 2*NRHS+1 ),
00455      $                               RESULT( 1 ) )
00456                         K1 = 1
00457                      ELSE
00458                         K1 = 2
00459                      END IF
00460 *
00461 *                    Compute residual of the computed solution.
00462 *
00463                      CALL CLACPY( 'Full', N, NRHS, B, LDA, WORK, LDA )
00464                      CALL CPOT02( UPLO, N, NRHS, A, LDA, X, LDA, WORK,
00465      $                            LDA, RWORK( 2*NRHS+1 ), RESULT( 2 ) )
00466 *
00467 *                    Check solution from generated exact solution.
00468 *
00469                      CALL CGET04( N, NRHS, X, LDA, XACT, LDA, RCONDC,
00470      $                            RESULT( 3 ) )
00471 *
00472 *                    Check the error bounds from iterative refinement.
00473 *
00474                      CALL CPOT05( UPLO, N, NRHS, A, LDA, B, LDA, X, LDA,
00475      $                            XACT, LDA, RWORK, RWORK( NRHS+1 ),
00476      $                            RESULT( 4 ) )
00477                   ELSE
00478                      K1 = 6
00479                   END IF
00480 *
00481 *                 Compare RCOND from CHESVX with the computed value
00482 *                 in RCONDC.
00483 *
00484                   RESULT( 6 ) = SGET06( RCOND, RCONDC )
00485 *
00486 *                 Print information about the tests that did not pass
00487 *                 the threshold.
00488 *
00489                   DO 140 K = K1, 6
00490                      IF( RESULT( K ).GE.THRESH ) THEN
00491                         IF( NFAIL.EQ.0 .AND. NERRS.EQ.0 )
00492      $                     CALL ALADHD( NOUT, PATH )
00493                         WRITE( NOUT, FMT = 9998 )'CHESVX', FACT, UPLO,
00494      $                     N, IMAT, K, RESULT( K )
00495                         NFAIL = NFAIL + 1
00496                      END IF
00497   140             CONTINUE
00498                   NRUN = NRUN + 7 - K1
00499 *
00500 *                 --- Test CHESVXX ---
00501 *
00502 *                 Restore the matrices A and B.
00503 *
00504                   IF( IFACT.EQ.2 )
00505      $               CALL CLASET( UPLO, N, N, CMPLX( ZERO ),
00506      $                 CMPLX( ZERO ), AFAC, LDA )
00507                   CALL CLASET( 'Full', N, NRHS, CMPLX( ZERO ),
00508      $                 CMPLX( ZERO ), X, LDA )
00509 *
00510 *                 Solve the system and compute the condition number
00511 *                 and error bounds using CHESVXX.
00512 *
00513                   SRNAMT = 'CHESVXX'
00514                   N_ERR_BNDS = 3
00515                   EQUED = 'N'
00516                   CALL CHESVXX( FACT, UPLO, N, NRHS, A, LDA, AFAC,
00517      $                 LDA, IWORK, EQUED, WORK( N+1 ), B, LDA, X,
00518      $                 LDA, RCOND, RPVGRW_SVXX, BERR, N_ERR_BNDS,
00519      $                 ERRBNDS_N, ERRBNDS_C, 0, ZERO, WORK,
00520      $                 IWORK( N+1 ), INFO )
00521 *
00522 *                 Adjust the expected value of INFO to account for
00523 *                 pivoting.
00524 *
00525                   K = IZERO
00526                   IF( K.GT.0 ) THEN
00527  135                 CONTINUE
00528                      IF( IWORK( K ).LT.0 ) THEN
00529                         IF( IWORK( K ).NE.-K ) THEN
00530                            K = -IWORK( K )
00531                            GO TO 135
00532                         END IF
00533                      ELSE IF( IWORK( K ).NE.K ) THEN
00534                         K = IWORK( K )
00535                         GO TO 135
00536                      END IF
00537                   END IF
00538 *
00539 *                 Check the error code from CHESVXX.
00540 *
00541                   IF( INFO.NE.K ) THEN
00542                      CALL ALAERH( PATH, 'CHESVXX', INFO, K,
00543      $                    FACT // UPLO, N, N, -1, -1, NRHS, IMAT, NFAIL,
00544      $                    NERRS, NOUT )
00545                      GO TO 150
00546                   END IF
00547 *
00548                   IF( INFO.EQ.0 ) THEN
00549                      IF( IFACT.GE.2 ) THEN
00550 *
00551 *                 Reconstruct matrix from factors and compute
00552 *                 residual.
00553 *
00554                         CALL CHET01( UPLO, N, A, LDA, AFAC, LDA, IWORK,
00555      $                       AINV, LDA, RWORK(2*NRHS+1),
00556      $                       RESULT( 1 ) )
00557                         K1 = 1
00558                      ELSE
00559                         K1 = 2
00560                      END IF
00561 *
00562 *                 Compute residual of the computed solution.
00563 *
00564                      CALL CLACPY( 'Full', N, NRHS, B, LDA, WORK, LDA )
00565                      CALL CPOT02( UPLO, N, NRHS, A, LDA, X, LDA, WORK,
00566      $                    LDA, RWORK( 2*NRHS+1 ), RESULT( 2 ) )
00567                      RESULT( 2 ) = 0.0
00568 *
00569 *                 Check solution from generated exact solution.
00570 *
00571                      CALL CGET04( N, NRHS, X, LDA, XACT, LDA, RCONDC,
00572      $                    RESULT( 3 ) )
00573 *
00574 *                 Check the error bounds from iterative refinement.
00575 *
00576                      CALL CPOT05( UPLO, N, NRHS, A, LDA, B, LDA, X, LDA,
00577      $                    XACT, LDA, RWORK, RWORK( NRHS+1 ),
00578      $                    RESULT( 4 ) )
00579                   ELSE
00580                      K1 = 6
00581                   END IF
00582 *
00583 *                 Compare RCOND from CHESVXX with the computed value
00584 *                 in RCONDC.
00585 *
00586                   RESULT( 6 ) = SGET06( RCOND, RCONDC )
00587 *
00588 *                 Print information about the tests that did not pass
00589 *                 the threshold.
00590 *
00591                   DO 85 K = K1, 6
00592                      IF( RESULT( K ).GE.THRESH ) THEN
00593                         IF( NFAIL.EQ.0 .AND. NERRS.EQ.0 )
00594      $                       CALL ALADHD( NOUT, PATH )
00595                         WRITE( NOUT, FMT = 9998 )'CHESVXX',
00596      $                       FACT, UPLO, N, IMAT, K,
00597      $                       RESULT( K )
00598                         NFAIL = NFAIL + 1
00599                      END IF
00600  85               CONTINUE
00601                   NRUN = NRUN + 7 - K1
00602 *
00603   150          CONTINUE
00604 *
00605   160       CONTINUE
00606   170    CONTINUE
00607   180 CONTINUE
00608 *
00609 *     Print a summary of the results.
00610 *
00611       CALL ALASVM( PATH, NOUT, NFAIL, NRUN, NERRS )
00612 *
00613 
00614 *     Test Error Bounds from CHESVXX
00615 
00616       CALL CEBCHVXX(THRESH, PATH)
00617 
00618  9999 FORMAT( 1X, A, ', UPLO=''', A1, ''', N =', I5, ', type ', I2,
00619      $      ', test ', I2, ', ratio =', G12.5 )
00620  9998 FORMAT( 1X, A, ', FACT=''', A1, ''', UPLO=''', A1, ''', N =', I5,
00621      $      ', type ', I2, ', test ', I2, ', ratio =', G12.5 )
00622       RETURN
00623 *
00624 *     End of CDRVHE
00625 *
00626       END
 All Files Functions