3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
11 * SUBROUTINE ZDRVES( NSIZES, NN, NTYPES, DOTYPE, ISEED, THRESH,
12 * NOUNIT, A, LDA, H, HT, W, WT, VS, LDVS, RESULT,
13 * WORK, NWORK, RWORK, IWORK, BWORK, INFO )
15 * .. Scalar Arguments ..
16 * INTEGER INFO, LDA, LDVS, NOUNIT, NSIZES, NTYPES, NWORK
17 * DOUBLE PRECISION THRESH
19 * .. Array Arguments ..
20 * LOGICAL BWORK( * ), DOTYPE( * )
21 * INTEGER ISEED( 4 ), IWORK( * ), NN( * )
22 * DOUBLE PRECISION RESULT( 13 ), RWORK( * )
23 * COMPLEX*16 A( LDA, * ), H( LDA, * ), HT( LDA, * ),
24 * $ VS( LDVS, * ), W( * ), WORK( * ), WT( * )
33 *> ZDRVES checks the nonsymmetric eigenvalue (Schur form) problem
36 *> When ZDRVES is called, a number of matrix "sizes" ("n's") and a
37 *> number of matrix "types" are specified. For each size ("n")
38 *> and each type of matrix, one matrix will be generated and used
39 *> to test the nonsymmetric eigenroutines. For each matrix, 13
40 *> tests will be performed:
42 *> (1) 0 if T is in Schur form, 1/ulp otherwise
43 *> (no sorting of eigenvalues)
45 *> (2) | A - VS T VS' | / ( n |A| ulp )
47 *> Here VS is the matrix of Schur eigenvectors, and T is in Schur
48 *> form (no sorting of eigenvalues).
50 *> (3) | I - VS VS' | / ( n ulp ) (no sorting of eigenvalues).
52 *> (4) 0 if W are eigenvalues of T
54 *> (no sorting of eigenvalues)
56 *> (5) 0 if T(with VS) = T(without VS),
58 *> (no sorting of eigenvalues)
60 *> (6) 0 if eigenvalues(with VS) = eigenvalues(without VS),
62 *> (no sorting of eigenvalues)
64 *> (7) 0 if T is in Schur form, 1/ulp otherwise
65 *> (with sorting of eigenvalues)
67 *> (8) | A - VS T VS' | / ( n |A| ulp )
69 *> Here VS is the matrix of Schur eigenvectors, and T is in Schur
70 *> form (with sorting of eigenvalues).
72 *> (9) | I - VS VS' | / ( n ulp ) (with sorting of eigenvalues).
74 *> (10) 0 if W are eigenvalues of T
76 *> (with sorting of eigenvalues)
78 *> (11) 0 if T(with VS) = T(without VS),
80 *> (with sorting of eigenvalues)
82 *> (12) 0 if eigenvalues(with VS) = eigenvalues(without VS),
84 *> (with sorting of eigenvalues)
86 *> (13) if sorting worked and SDIM is the number of
87 *> eigenvalues which were SELECTed
89 *> The "sizes" are specified by an array NN(1:NSIZES); the value of
90 *> each element NN(j) specifies one size.
91 *> The "types" are specified by a logical array DOTYPE( 1:NTYPES );
92 *> if DOTYPE(j) is .TRUE., then matrix type "j" will be generated.
93 *> Currently, the list of possible types is:
95 *> (1) The zero matrix.
96 *> (2) The identity matrix.
97 *> (3) A (transposed) Jordan block, with 1's on the diagonal.
99 *> (4) A diagonal matrix with evenly spaced entries
100 *> 1, ..., ULP and random complex angles.
101 *> (ULP = (first number larger than 1) - 1 )
102 *> (5) A diagonal matrix with geometrically spaced entries
103 *> 1, ..., ULP and random complex angles.
104 *> (6) A diagonal matrix with "clustered" entries 1, ULP, ..., ULP
105 *> and random complex angles.
107 *> (7) Same as (4), but multiplied by a constant near
108 *> the overflow threshold
109 *> (8) Same as (4), but multiplied by a constant near
110 *> the underflow threshold
112 *> (9) A matrix of the form U' T U, where U is unitary and
113 *> T has evenly spaced entries 1, ..., ULP with random
114 *> complex angles on the diagonal and random O(1) entries in
115 *> the upper triangle.
117 *> (10) A matrix of the form U' T U, where U is unitary and
118 *> T has geometrically spaced entries 1, ..., ULP with random
119 *> complex angles on the diagonal and random O(1) entries in
120 *> the upper triangle.
122 *> (11) A matrix of the form U' T U, where U is orthogonal and
123 *> T has "clustered" entries 1, ULP,..., ULP with random
124 *> complex angles on the diagonal and random O(1) entries in
125 *> the upper triangle.
127 *> (12) A matrix of the form U' T U, where U is unitary and
128 *> T has complex eigenvalues randomly chosen from
129 *> ULP < |z| < 1 and random O(1) entries in the upper
132 *> (13) A matrix of the form X' T X, where X has condition
133 *> SQRT( ULP ) and T has evenly spaced entries 1, ..., ULP
134 *> with random complex angles on the diagonal and random O(1)
135 *> entries in the upper triangle.
137 *> (14) A matrix of the form X' T X, where X has condition
138 *> SQRT( ULP ) and T has geometrically spaced entries
139 *> 1, ..., ULP with random complex angles on the diagonal
140 *> and random O(1) entries in the upper triangle.
142 *> (15) A matrix of the form X' T X, where X has condition
143 *> SQRT( ULP ) and T has "clustered" entries 1, ULP,..., ULP
144 *> with random complex angles on the diagonal and random O(1)
145 *> entries in the upper triangle.
147 *> (16) A matrix of the form X' T X, where X has condition
148 *> SQRT( ULP ) and T has complex eigenvalues randomly chosen
149 *> from ULP < |z| < 1 and random O(1) entries in the upper
152 *> (17) Same as (16), but multiplied by a constant
153 *> near the overflow threshold
154 *> (18) Same as (16), but multiplied by a constant
155 *> near the underflow threshold
157 *> (19) Nonsymmetric matrix with random entries chosen from (-1,1).
158 *> If N is at least 4, all entries in first two rows and last
159 *> row, and first column and last two columns are zero.
160 *> (20) Same as (19), but multiplied by a constant
161 *> near the overflow threshold
162 *> (21) Same as (19), but multiplied by a constant
163 *> near the underflow threshold
172 *> The number of sizes of matrices to use. If it is zero,
173 *> ZDRVES does nothing. It must be at least zero.
178 *> NN is INTEGER array, dimension (NSIZES)
179 *> An array containing the sizes to be used for the matrices.
180 *> Zero values will be skipped. The values must be at least
187 *> The number of elements in DOTYPE. If it is zero, ZDRVES
188 *> does nothing. It must be at least zero. If it is MAXTYP+1
189 *> and NSIZES is 1, then an additional type, MAXTYP+1 is
190 *> defined, which is to use whatever matrix is in A. This
191 *> is only useful if DOTYPE(1:MAXTYP) is .FALSE. and
192 *> DOTYPE(MAXTYP+1) is .TRUE. .
197 *> DOTYPE is LOGICAL array, dimension (NTYPES)
198 *> If DOTYPE(j) is .TRUE., then for each size in NN a
199 *> matrix of that size and of type j will be generated.
200 *> If NTYPES is smaller than the maximum number of types
201 *> defined (PARAMETER MAXTYP), then types NTYPES+1 through
202 *> MAXTYP will not be generated. If NTYPES is larger
203 *> than MAXTYP, DOTYPE(MAXTYP+1) through DOTYPE(NTYPES)
207 *> \param[in,out] ISEED
209 *> ISEED is INTEGER array, dimension (4)
210 *> On entry ISEED specifies the seed of the random number
211 *> generator. The array elements should be between 0 and 4095;
212 *> if not they will be reduced mod 4096. Also, ISEED(4) must
213 *> be odd. The random number generator uses a linear
214 *> congruential sequence limited to small integers, and so
215 *> should produce machine independent random numbers. The
216 *> values of ISEED are changed on exit, and can be used in the
217 *> next call to ZDRVES to continue the same random number
223 *> THRESH is DOUBLE PRECISION
224 *> A test will count as "failed" if the "error", computed as
225 *> described above, exceeds THRESH. Note that the error
226 *> is scaled to be O(1), so THRESH should be a reasonably
227 *> small multiple of 1, e.g., 10 or 100. In particular,
228 *> it should not depend on the precision (single vs. double)
229 *> or the size of the matrix. It must be at least zero.
235 *> The FORTRAN unit number for printing out error messages
236 *> (e.g., if a routine returns INFO not equal to 0.)
241 *> A is COMPLEX*16 array, dimension (LDA, max(NN))
242 *> Used to hold the matrix whose eigenvalues are to be
243 *> computed. On exit, A contains the last matrix actually used.
249 *> The leading dimension of A, and H. LDA must be at
250 *> least 1 and at least max( NN ).
255 *> H is COMPLEX*16 array, dimension (LDA, max(NN))
256 *> Another copy of the test matrix A, modified by ZGEES.
261 *> HT is COMPLEX*16 array, dimension (LDA, max(NN))
262 *> Yet another copy of the test matrix A, modified by ZGEES.
267 *> W is COMPLEX*16 array, dimension (max(NN))
268 *> The computed eigenvalues of A.
273 *> WT is COMPLEX*16 array, dimension (max(NN))
274 *> Like W, this array contains the eigenvalues of A,
275 *> but those computed when ZGEES only computes a partial
276 *> eigendecomposition, i.e. not Schur vectors
281 *> VS is COMPLEX*16 array, dimension (LDVS, max(NN))
282 *> VS holds the computed Schur vectors.
288 *> Leading dimension of VS. Must be at least max(1,max(NN)).
291 *> \param[out] RESULT
293 *> RESULT is DOUBLE PRECISION array, dimension (13)
294 *> The values computed by the 13 tests described above.
295 *> The values are currently limited to 1/ulp, to avoid overflow.
300 *> WORK is COMPLEX*16 array, dimension (NWORK)
306 *> The number of entries in WORK. This must be at least
307 *> 5*NN(j)+2*NN(j)**2 for all j.
312 *> RWORK is DOUBLE PRECISION array, dimension (max(NN))
317 *> IWORK is INTEGER array, dimension (max(NN))
322 *> BWORK is LOGICAL array, dimension (max(NN))
328 *> If 0, then everything ran OK.
330 *> -2: Some NN(j) < 0
333 *> -9: LDA < 1 or LDA < NMAX, where NMAX is max( NN(j) ).
334 *> -15: LDVS < 1 or LDVS < NMAX, where NMAX is max( NN(j) ).
335 *> -18: NWORK too small.
336 *> If ZLATMR, CLATMS, CLATME or ZGEES returns an error code,
337 *> the absolute value of it is returned.
339 *>-----------------------------------------------------------------------
341 *> Some Local Variables and Parameters:
342 *> ---- ----- --------- --- ----------
343 *> ZERO, ONE Real 0 and 1.
344 *> MAXTYP The number of types defined.
345 *> NMAX Largest value in NN.
346 *> NERRS The number of tests which have exceeded THRESH
348 *> IMODE Values to be passed to the matrix generators.
349 *> ANORM Norm of A; passed to matrix generators.
351 *> OVFL, UNFL Overflow and underflow thresholds.
352 *> ULP, ULPINV Finest relative precision and its inverse.
353 *> RTULP, RTULPI Square roots of the previous 4 values.
354 *> The following four arrays decode JTYPE:
355 *> KTYPE(j) The general type (1-10) for type "j".
356 *> KMODE(j) The MODE value to be passed to the matrix
357 *> generator for type "j".
358 *> KMAGN(j) The order of magnitude ( O(1),
359 *> O(overflow^(1/2) ), O(underflow^(1/2) )
360 *> KCONDS(j) Select whether CONDS is to be 1 or
361 *> 1/sqrt(ulp). (0 means irrelevant.)
367 *> \author Univ. of Tennessee
368 *> \author Univ. of California Berkeley
369 *> \author Univ. of Colorado Denver
374 *> \ingroup complex16_eig
376 * =====================================================================
377 SUBROUTINE ZDRVES( NSIZES, NN, NTYPES, DOTYPE, ISEED, THRESH,
378 $ NOUNIT, A, LDA, H, HT, W, WT, VS, LDVS, RESULT,
379 $ WORK, NWORK, RWORK, IWORK, BWORK, INFO )
381 * -- LAPACK test routine (version 3.6.1) --
382 * -- LAPACK is a software package provided by Univ. of Tennessee, --
383 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
386 * .. Scalar Arguments ..
387 INTEGER INFO, LDA, LDVS, NOUNIT, NSIZES, NTYPES, NWORK
388 DOUBLE PRECISION THRESH
390 * .. Array Arguments ..
391 LOGICAL BWORK( * ), DOTYPE( * )
392 INTEGER ISEED( 4 ), IWORK( * ), NN( * )
393 DOUBLE PRECISION RESULT( 13 ), RWORK( * )
394 COMPLEX*16 A( LDA, * ), H( LDA, * ), HT( LDA, * ),
395 $ VS( LDVS, * ), W( * ), WORK( * ), WT( * )
398 * =====================================================================
402 PARAMETER ( CZERO = ( 0.0D+0, 0.0D+0 ) )
404 PARAMETER ( CONE = ( 1.0D+0, 0.0D+0 ) )
405 DOUBLE PRECISION ZERO, ONE
406 PARAMETER ( ZERO = 0.0D+0, ONE = 1.0D+0 )
408 PARAMETER ( MAXTYP = 21 )
410 * .. Local Scalars ..
414 INTEGER I, IINFO, IMODE, ISORT, ITYPE, IWK, J, JCOL,
415 $ JSIZE, JTYPE, KNTEIG, LWORK, MTYPES, N, NERRS,
416 $ NFAIL, NMAX, NNWORK, NTEST, NTESTF, NTESTT,
418 DOUBLE PRECISION ANORM, COND, CONDS, OVFL, RTULP, RTULPI, ULP,
422 INTEGER IDUMMA( 1 ), IOLDSD( 4 ), KCONDS( MAXTYP ),
423 $ KMAGN( MAXTYP ), KMODE( MAXTYP ),
425 DOUBLE PRECISION RES( 2 )
427 * .. Arrays in Common ..
429 DOUBLE PRECISION SELWI( 20 ), SELWR( 20 )
431 * .. Scalars in Common ..
432 INTEGER SELDIM, SELOPT
434 * .. Common blocks ..
435 COMMON / SSLCT / SELOPT, SELDIM, SELVAL, SELWR, SELWI
437 * .. External Functions ..
439 DOUBLE PRECISION DLAMCH
440 EXTERNAL ZSLECT, DLAMCH
442 * .. External Subroutines ..
443 EXTERNAL DLABAD, DLASUM, XERBLA, ZGEES, ZHST01, ZLACPY,
444 $ ZLASET, ZLATME, ZLATMR, ZLATMS
446 * .. Intrinsic Functions ..
447 INTRINSIC ABS, DCMPLX, MAX, MIN, SQRT
449 * .. Data statements ..
450 DATA KTYPE / 1, 2, 3, 5*4, 4*6, 6*6, 3*9 /
451 DATA KMAGN / 3*1, 1, 1, 1, 2, 3, 4*1, 1, 1, 1, 1, 2,
453 DATA KMODE / 3*0, 4, 3, 1, 4, 4, 4, 3, 1, 5, 4, 3,
454 $ 1, 5, 5, 5, 4, 3, 1 /
455 DATA KCONDS / 3*0, 5*0, 4*1, 6*2, 3*0 /
457 * .. Executable Statements ..
459 PATH( 1: 1 ) = 'Zomplex precision'
469 * Important constants
474 NMAX = MAX( NMAX, NN( J ) )
481 IF( NSIZES.LT.0 ) THEN
483 ELSE IF( BADNN ) THEN
485 ELSE IF( NTYPES.LT.0 ) THEN
487 ELSE IF( THRESH.LT.ZERO ) THEN
489 ELSE IF( NOUNIT.LE.0 ) THEN
491 ELSE IF( LDA.LT.1 .OR. LDA.LT.NMAX ) THEN
493 ELSE IF( LDVS.LT.1 .OR. LDVS.LT.NMAX ) THEN
495 ELSE IF( 5*NMAX+2*NMAX**2.GT.NWORK ) THEN
500 CALL XERBLA( 'ZDRVES', -INFO )
504 * Quick return if nothing to do
506 IF( NSIZES.EQ.0 .OR. NTYPES.EQ.0 )
509 * More Important constants
511 UNFL = DLAMCH( 'Safe minimum' )
513 CALL DLABAD( UNFL, OVFL )
514 ULP = DLAMCH( 'Precision' )
519 * Loop over sizes, types
523 DO 240 JSIZE = 1, NSIZES
525 IF( NSIZES.NE.1 ) THEN
526 MTYPES = MIN( MAXTYP, NTYPES )
528 MTYPES = MIN( MAXTYP+1, NTYPES )
531 DO 230 JTYPE = 1, MTYPES
532 IF( .NOT.DOTYPE( JTYPE ) )
535 * Save ISEED in case of an error.
538 IOLDSD( J ) = ISEED( J )
543 * Control parameters:
545 * KMAGN KCONDS KMODE KTYPE
546 * =1 O(1) 1 clustered 1 zero
547 * =2 large large clustered 2 identity
548 * =3 small exponential Jordan
549 * =4 arithmetic diagonal, (w/ eigenvalues)
550 * =5 random log symmetric, w/ eigenvalues
551 * =6 random general, w/ eigenvalues
553 * =8 random symmetric
555 * =10 random triangular
557 IF( MTYPES.GT.MAXTYP )
560 ITYPE = KTYPE( JTYPE )
561 IMODE = KMODE( JTYPE )
565 GO TO ( 30, 40, 50 )KMAGN( JTYPE )
581 CALL ZLASET( 'Full', LDA, N, CZERO, CZERO, A, LDA )
585 * Special Matrices -- Identity & Jordan block
587 IF( ITYPE.EQ.1 ) THEN
593 ELSE IF( ITYPE.EQ.2 ) THEN
598 A( JCOL, JCOL ) = DCMPLX( ANORM )
601 ELSE IF( ITYPE.EQ.3 ) THEN
606 A( JCOL, JCOL ) = DCMPLX( ANORM )
608 $ A( JCOL, JCOL-1 ) = CONE
611 ELSE IF( ITYPE.EQ.4 ) THEN
613 * Diagonal Matrix, [Eigen]values Specified
615 CALL ZLATMS( N, N, 'S', ISEED, 'H', RWORK, IMODE, COND,
616 $ ANORM, 0, 0, 'N', A, LDA, WORK( N+1 ),
619 ELSE IF( ITYPE.EQ.5 ) THEN
621 * Symmetric, eigenvalues specified
623 CALL ZLATMS( N, N, 'S', ISEED, 'H', RWORK, IMODE, COND,
624 $ ANORM, N, N, 'N', A, LDA, WORK( N+1 ),
627 ELSE IF( ITYPE.EQ.6 ) THEN
629 * General, eigenvalues specified
631 IF( KCONDS( JTYPE ).EQ.1 ) THEN
633 ELSE IF( KCONDS( JTYPE ).EQ.2 ) THEN
639 CALL ZLATME( N, 'D', ISEED, WORK, IMODE, COND, CONE,
640 $ 'T', 'T', 'T', RWORK, 4, CONDS, N, N, ANORM,
641 $ A, LDA, WORK( 2*N+1 ), IINFO )
643 ELSE IF( ITYPE.EQ.7 ) THEN
645 * Diagonal, random eigenvalues
647 CALL ZLATMR( N, N, 'D', ISEED, 'N', WORK, 6, ONE, CONE,
648 $ 'T', 'N', WORK( N+1 ), 1, ONE,
649 $ WORK( 2*N+1 ), 1, ONE, 'N', IDUMMA, 0, 0,
650 $ ZERO, ANORM, 'NO', A, LDA, IWORK, IINFO )
652 ELSE IF( ITYPE.EQ.8 ) THEN
654 * Symmetric, random eigenvalues
656 CALL ZLATMR( N, N, 'D', ISEED, 'H', WORK, 6, ONE, CONE,
657 $ 'T', 'N', WORK( N+1 ), 1, ONE,
658 $ WORK( 2*N+1 ), 1, ONE, 'N', IDUMMA, N, N,
659 $ ZERO, ANORM, 'NO', A, LDA, IWORK, IINFO )
661 ELSE IF( ITYPE.EQ.9 ) THEN
663 * General, random eigenvalues
665 CALL ZLATMR( N, N, 'D', ISEED, 'N', WORK, 6, ONE, CONE,
666 $ 'T', 'N', WORK( N+1 ), 1, ONE,
667 $ WORK( 2*N+1 ), 1, ONE, 'N', IDUMMA, N, N,
668 $ ZERO, ANORM, 'NO', A, LDA, IWORK, IINFO )
670 CALL ZLASET( 'Full', 2, N, CZERO, CZERO, A, LDA )
671 CALL ZLASET( 'Full', N-3, 1, CZERO, CZERO, A( 3, 1 ),
673 CALL ZLASET( 'Full', N-3, 2, CZERO, CZERO,
675 CALL ZLASET( 'Full', 1, N, CZERO, CZERO, A( N, 1 ),
679 ELSE IF( ITYPE.EQ.10 ) THEN
681 * Triangular, random eigenvalues
683 CALL ZLATMR( N, N, 'D', ISEED, 'N', WORK, 6, ONE, CONE,
684 $ 'T', 'N', WORK( N+1 ), 1, ONE,
685 $ WORK( 2*N+1 ), 1, ONE, 'N', IDUMMA, N, 0,
686 $ ZERO, ANORM, 'NO', A, LDA, IWORK, IINFO )
693 IF( IINFO.NE.0 ) THEN
694 WRITE( NOUNIT, FMT = 9992 )'Generator', IINFO, N, JTYPE,
702 * Test for minimal and generous workspace
708 NNWORK = 5*N + 2*N**2
710 NNWORK = MAX( NNWORK, 1 )
718 * Test with and without sorting of eigenvalues
721 IF( ISORT.EQ.0 ) THEN
729 * Compute Schur form and Schur vectors, and test them
731 CALL ZLACPY( 'F', N, N, A, LDA, H, LDA )
732 CALL ZGEES( 'V', SORT, ZSLECT, N, H, LDA, SDIM, W, VS,
733 $ LDVS, WORK, NNWORK, RWORK, BWORK, IINFO )
734 IF( IINFO.NE.0 ) THEN
735 RESULT( 1+RSUB ) = ULPINV
736 WRITE( NOUNIT, FMT = 9992 )'ZGEES1', IINFO, N,
742 * Do Test (1) or Test (7)
744 RESULT( 1+RSUB ) = ZERO
747 IF( H( I, J ).NE.ZERO )
748 $ RESULT( 1+RSUB ) = ULPINV
752 * Do Tests (2) and (3) or Tests (8) and (9)
754 LWORK = MAX( 1, 2*N*N )
755 CALL ZHST01( N, 1, N, A, LDA, H, LDA, VS, LDVS, WORK,
756 $ LWORK, RWORK, RES )
757 RESULT( 2+RSUB ) = RES( 1 )
758 RESULT( 3+RSUB ) = RES( 2 )
760 * Do Test (4) or Test (10)
762 RESULT( 4+RSUB ) = ZERO
764 IF( H( I, I ).NE.W( I ) )
765 $ RESULT( 4+RSUB ) = ULPINV
768 * Do Test (5) or Test (11)
770 CALL ZLACPY( 'F', N, N, A, LDA, HT, LDA )
771 CALL ZGEES( 'N', SORT, ZSLECT, N, HT, LDA, SDIM, WT,
772 $ VS, LDVS, WORK, NNWORK, RWORK, BWORK,
774 IF( IINFO.NE.0 ) THEN
775 RESULT( 5+RSUB ) = ULPINV
776 WRITE( NOUNIT, FMT = 9992 )'ZGEES2', IINFO, N,
782 RESULT( 5+RSUB ) = ZERO
785 IF( H( I, J ).NE.HT( I, J ) )
786 $ RESULT( 5+RSUB ) = ULPINV
790 * Do Test (6) or Test (12)
792 RESULT( 6+RSUB ) = ZERO
794 IF( W( I ).NE.WT( I ) )
795 $ RESULT( 6+RSUB ) = ULPINV
800 IF( ISORT.EQ.1 ) THEN
804 IF( ZSLECT( W( I ) ) )
805 $ KNTEIG = KNTEIG + 1
807 IF( ZSLECT( W( I+1 ) ) .AND.
808 $ ( .NOT.ZSLECT( W( I ) ) ) )RESULT( 13 )
813 $ RESULT( 13 ) = ULPINV
818 * End of Loop -- Check for RESULT(j) > THRESH
825 IF( RESULT( J ).GE.ZERO )
827 IF( RESULT( J ).GE.THRESH )
832 $ NTESTF = NTESTF + 1
833 IF( NTESTF.EQ.1 ) THEN
834 WRITE( NOUNIT, FMT = 9999 )PATH
835 WRITE( NOUNIT, FMT = 9998 )
836 WRITE( NOUNIT, FMT = 9997 )
837 WRITE( NOUNIT, FMT = 9996 )
838 WRITE( NOUNIT, FMT = 9995 )THRESH
839 WRITE( NOUNIT, FMT = 9994 )
844 IF( RESULT( J ).GE.THRESH ) THEN
845 WRITE( NOUNIT, FMT = 9993 )N, IWK, IOLDSD, JTYPE,
850 NERRS = NERRS + NFAIL
851 NTESTT = NTESTT + NTEST
859 CALL DLASUM( PATH, NOUNIT, NERRS, NTESTT )
861 9999 FORMAT( / 1X, A3, ' -- Complex Schur Form Decomposition Driver',
862 $ / ' Matrix types (see ZDRVES for details): ' )
864 9998 FORMAT( / ' Special Matrices:', / ' 1=Zero matrix. ',
865 $ ' ', ' 5=Diagonal: geometr. spaced entries.',
866 $ / ' 2=Identity matrix. ', ' 6=Diagona',
867 $ 'l: clustered entries.', / ' 3=Transposed Jordan block. ',
868 $ ' ', ' 7=Diagonal: large, evenly spaced.', / ' ',
869 $ '4=Diagonal: evenly spaced entries. ', ' 8=Diagonal: s',
870 $ 'mall, evenly spaced.' )
871 9997 FORMAT( ' Dense, Non-Symmetric Matrices:', / ' 9=Well-cond., ev',
872 $ 'enly spaced eigenvals.', ' 14=Ill-cond., geomet. spaced e',
873 $ 'igenals.', / ' 10=Well-cond., geom. spaced eigenvals. ',
874 $ ' 15=Ill-conditioned, clustered e.vals.', / ' 11=Well-cond',
875 $ 'itioned, clustered e.vals. ', ' 16=Ill-cond., random comp',
876 $ 'lex ', A6, / ' 12=Well-cond., random complex ', A6, ' ',
877 $ ' 17=Ill-cond., large rand. complx ', A4, / ' 13=Ill-condi',
878 $ 'tioned, evenly spaced. ', ' 18=Ill-cond., small rand.',
880 9996 FORMAT( ' 19=Matrix with random O(1) entries. ', ' 21=Matrix ',
881 $ 'with small random entries.', / ' 20=Matrix with large ran',
882 $ 'dom entries. ', / )
883 9995 FORMAT( ' Tests performed with test threshold =', F8.2,
884 $ / ' ( A denotes A on input and T denotes A on output)',
885 $ / / ' 1 = 0 if T in Schur form (no sort), ',
886 $ ' 1/ulp otherwise', /
887 $ ' 2 = | A - VS T transpose(VS) | / ( n |A| ulp ) (no sort)',
888 $ / ' 3 = | I - VS transpose(VS) | / ( n ulp ) (no sort) ',
889 $ / ' 4 = 0 if W are eigenvalues of T (no sort),',
890 $ ' 1/ulp otherwise', /
891 $ ' 5 = 0 if T same no matter if VS computed (no sort),',
892 $ ' 1/ulp otherwise', /
893 $ ' 6 = 0 if W same no matter if VS computed (no sort)',
894 $ ', 1/ulp otherwise' )
895 9994 FORMAT( ' 7 = 0 if T in Schur form (sort), ', ' 1/ulp otherwise',
896 $ / ' 8 = | A - VS T transpose(VS) | / ( n |A| ulp ) (sort)',
897 $ / ' 9 = | I - VS transpose(VS) | / ( n ulp ) (sort) ',
898 $ / ' 10 = 0 if W are eigenvalues of T (sort),',
899 $ ' 1/ulp otherwise', /
900 $ ' 11 = 0 if T same no matter if VS computed (sort),',
901 $ ' 1/ulp otherwise', /
902 $ ' 12 = 0 if W same no matter if VS computed (sort),',
903 $ ' 1/ulp otherwise', /
904 $ ' 13 = 0 if sorting successful, 1/ulp otherwise', / )
905 9993 FORMAT( ' N=', I5, ', IWK=', I2, ', seed=', 4( I4, ',' ),
906 $ ' type ', I2, ', test(', I2, ')=', G10.3 )
907 9992 FORMAT( ' ZDRVES: ', A, ' returned INFO=', I6, '.', / 9X, 'N=',
908 $ I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5, ')' )