00001 SUBROUTINE SDRGEV( NSIZES, NN, NTYPES, DOTYPE, ISEED, THRESH,
00002 $ NOUNIT, A, LDA, B, S, T, Q, LDQ, Z, QE, LDQE,
00003 $ ALPHAR, ALPHAI, BETA, ALPHR1, ALPHI1, BETA1,
00004 $ WORK, LWORK, RESULT, INFO )
00005
00006
00007
00008
00009
00010
00011 INTEGER INFO, LDA, LDQ, LDQE, LWORK, NOUNIT, NSIZES,
00012 $ NTYPES
00013 REAL THRESH
00014
00015
00016 LOGICAL DOTYPE( * )
00017 INTEGER ISEED( 4 ), NN( * )
00018 REAL A( LDA, * ), ALPHAI( * ), ALPHI1( * ),
00019 $ ALPHAR( * ), ALPHR1( * ), B( LDA, * ),
00020 $ BETA( * ), BETA1( * ), Q( LDQ, * ),
00021 $ QE( LDQE, * ), RESULT( * ), S( LDA, * ),
00022 $ T( LDA, * ), WORK( * ), Z( LDQ, * )
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299 REAL ZERO, ONE
00300 PARAMETER ( ZERO = 0.0E+0, ONE = 1.0E+0 )
00301 INTEGER MAXTYP
00302 PARAMETER ( MAXTYP = 26 )
00303
00304
00305 LOGICAL BADNN
00306 INTEGER I, IADD, IERR, IN, J, JC, JR, JSIZE, JTYPE,
00307 $ MAXWRK, MINWRK, MTYPES, N, N1, NERRS, NMATS,
00308 $ NMAX, NTESTT
00309 REAL SAFMAX, SAFMIN, ULP, ULPINV
00310
00311
00312 INTEGER IASIGN( MAXTYP ), IBSIGN( MAXTYP ),
00313 $ IOLDSD( 4 ), KADD( 6 ), KAMAGN( MAXTYP ),
00314 $ KATYPE( MAXTYP ), KAZERO( MAXTYP ),
00315 $ KBMAGN( MAXTYP ), KBTYPE( MAXTYP ),
00316 $ KBZERO( MAXTYP ), KCLASS( MAXTYP ),
00317 $ KTRIAN( MAXTYP ), KZ1( 6 ), KZ2( 6 )
00318 REAL RMAGN( 0: 3 )
00319
00320
00321 INTEGER ILAENV
00322 REAL SLAMCH, SLARND
00323 EXTERNAL ILAENV, SLAMCH, SLARND
00324
00325
00326 EXTERNAL ALASVM, SGET52, SGGEV, SLABAD, SLACPY, SLARFG,
00327 $ SLASET, SLATM4, SORM2R, XERBLA
00328
00329
00330 INTRINSIC ABS, MAX, MIN, REAL, SIGN
00331
00332
00333 DATA KCLASS / 15*1, 10*2, 1*3 /
00334 DATA KZ1 / 0, 1, 2, 1, 3, 3 /
00335 DATA KZ2 / 0, 0, 1, 2, 1, 1 /
00336 DATA KADD / 0, 0, 0, 0, 3, 2 /
00337 DATA KATYPE / 0, 1, 0, 1, 2, 3, 4, 1, 4, 4, 1, 1, 4,
00338 $ 4, 4, 2, 4, 5, 8, 7, 9, 4*4, 0 /
00339 DATA KBTYPE / 0, 0, 1, 1, 2, -3, 1, 4, 1, 1, 4, 4,
00340 $ 1, 1, -4, 2, -4, 8*8, 0 /
00341 DATA KAZERO / 6*1, 2, 1, 2*2, 2*1, 2*2, 3, 1, 3,
00342 $ 4*5, 4*3, 1 /
00343 DATA KBZERO / 6*1, 1, 2, 2*1, 2*2, 2*1, 4, 1, 4,
00344 $ 4*6, 4*4, 1 /
00345 DATA KAMAGN / 8*1, 2, 3, 2, 3, 2, 3, 7*1, 2, 3, 3,
00346 $ 2, 1 /
00347 DATA KBMAGN / 8*1, 3, 2, 3, 2, 2, 3, 7*1, 3, 2, 3,
00348 $ 2, 1 /
00349 DATA KTRIAN / 16*0, 10*1 /
00350 DATA IASIGN / 6*0, 2, 0, 2*2, 2*0, 3*2, 0, 2, 3*0,
00351 $ 5*2, 0 /
00352 DATA IBSIGN / 7*0, 2, 2*0, 2*2, 2*0, 2, 0, 2, 9*0 /
00353
00354
00355
00356
00357
00358 INFO = 0
00359
00360 BADNN = .FALSE.
00361 NMAX = 1
00362 DO 10 J = 1, NSIZES
00363 NMAX = MAX( NMAX, NN( J ) )
00364 IF( NN( J ).LT.0 )
00365 $ BADNN = .TRUE.
00366 10 CONTINUE
00367
00368 IF( NSIZES.LT.0 ) THEN
00369 INFO = -1
00370 ELSE IF( BADNN ) THEN
00371 INFO = -2
00372 ELSE IF( NTYPES.LT.0 ) THEN
00373 INFO = -3
00374 ELSE IF( THRESH.LT.ZERO ) THEN
00375 INFO = -6
00376 ELSE IF( LDA.LE.1 .OR. LDA.LT.NMAX ) THEN
00377 INFO = -9
00378 ELSE IF( LDQ.LE.1 .OR. LDQ.LT.NMAX ) THEN
00379 INFO = -14
00380 ELSE IF( LDQE.LE.1 .OR. LDQE.LT.NMAX ) THEN
00381 INFO = -17
00382 END IF
00383
00384
00385
00386
00387
00388
00389
00390
00391 MINWRK = 1
00392 IF( INFO.EQ.0 .AND. LWORK.GE.1 ) THEN
00393 MINWRK = MAX( 1, 8*NMAX, NMAX*( NMAX+1 ) )
00394 MAXWRK = 7*NMAX + NMAX*ILAENV( 1, 'SGEQRF', ' ', NMAX, 1, NMAX,
00395 $ 0 )
00396 MAXWRK = MAX( MAXWRK, NMAX*( NMAX+1 ) )
00397 WORK( 1 ) = MAXWRK
00398 END IF
00399
00400 IF( LWORK.LT.MINWRK )
00401 $ INFO = -25
00402
00403 IF( INFO.NE.0 ) THEN
00404 CALL XERBLA( 'SDRGEV', -INFO )
00405 RETURN
00406 END IF
00407
00408
00409
00410 IF( NSIZES.EQ.0 .OR. NTYPES.EQ.0 )
00411 $ RETURN
00412
00413 SAFMIN = SLAMCH( 'Safe minimum' )
00414 ULP = SLAMCH( 'Epsilon' )*SLAMCH( 'Base' )
00415 SAFMIN = SAFMIN / ULP
00416 SAFMAX = ONE / SAFMIN
00417 CALL SLABAD( SAFMIN, SAFMAX )
00418 ULPINV = ONE / ULP
00419
00420
00421
00422 RMAGN( 0 ) = ZERO
00423 RMAGN( 1 ) = ONE
00424
00425
00426
00427 NTESTT = 0
00428 NERRS = 0
00429 NMATS = 0
00430
00431 DO 220 JSIZE = 1, NSIZES
00432 N = NN( JSIZE )
00433 N1 = MAX( 1, N )
00434 RMAGN( 2 ) = SAFMAX*ULP / REAL( N1 )
00435 RMAGN( 3 ) = SAFMIN*ULPINV*N1
00436
00437 IF( NSIZES.NE.1 ) THEN
00438 MTYPES = MIN( MAXTYP, NTYPES )
00439 ELSE
00440 MTYPES = MIN( MAXTYP+1, NTYPES )
00441 END IF
00442
00443 DO 210 JTYPE = 1, MTYPES
00444 IF( .NOT.DOTYPE( JTYPE ) )
00445 $ GO TO 210
00446 NMATS = NMATS + 1
00447
00448
00449
00450 DO 20 J = 1, 4
00451 IOLDSD( J ) = ISEED( J )
00452 20 CONTINUE
00453
00454
00455
00456
00457
00458
00459
00460
00461
00462
00463
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
00476
00477 IF( MTYPES.GT.MAXTYP )
00478 $ GO TO 100
00479 IERR = 0
00480 IF( KCLASS( JTYPE ).LT.3 ) THEN
00481
00482
00483
00484 IF( ABS( KATYPE( JTYPE ) ).EQ.3 ) THEN
00485 IN = 2*( ( N-1 ) / 2 ) + 1
00486 IF( IN.NE.N )
00487 $ CALL SLASET( 'Full', N, N, ZERO, ZERO, A, LDA )
00488 ELSE
00489 IN = N
00490 END IF
00491 CALL SLATM4( KATYPE( JTYPE ), IN, KZ1( KAZERO( JTYPE ) ),
00492 $ KZ2( KAZERO( JTYPE ) ), IASIGN( JTYPE ),
00493 $ RMAGN( KAMAGN( JTYPE ) ), ULP,
00494 $ RMAGN( KTRIAN( JTYPE )*KAMAGN( JTYPE ) ), 2,
00495 $ ISEED, A, LDA )
00496 IADD = KADD( KAZERO( JTYPE ) )
00497 IF( IADD.GT.0 .AND. IADD.LE.N )
00498 $ A( IADD, IADD ) = ONE
00499
00500
00501
00502 IF( ABS( KBTYPE( JTYPE ) ).EQ.3 ) THEN
00503 IN = 2*( ( N-1 ) / 2 ) + 1
00504 IF( IN.NE.N )
00505 $ CALL SLASET( 'Full', N, N, ZERO, ZERO, B, LDA )
00506 ELSE
00507 IN = N
00508 END IF
00509 CALL SLATM4( KBTYPE( JTYPE ), IN, KZ1( KBZERO( JTYPE ) ),
00510 $ KZ2( KBZERO( JTYPE ) ), IBSIGN( JTYPE ),
00511 $ RMAGN( KBMAGN( JTYPE ) ), ONE,
00512 $ RMAGN( KTRIAN( JTYPE )*KBMAGN( JTYPE ) ), 2,
00513 $ ISEED, B, LDA )
00514 IADD = KADD( KBZERO( JTYPE ) )
00515 IF( IADD.NE.0 .AND. IADD.LE.N )
00516 $ B( IADD, IADD ) = ONE
00517
00518 IF( KCLASS( JTYPE ).EQ.2 .AND. N.GT.0 ) THEN
00519
00520
00521
00522
00523
00524
00525 DO 40 JC = 1, N - 1
00526 DO 30 JR = JC, N
00527 Q( JR, JC ) = SLARND( 3, ISEED )
00528 Z( JR, JC ) = SLARND( 3, ISEED )
00529 30 CONTINUE
00530 CALL SLARFG( N+1-JC, Q( JC, JC ), Q( JC+1, JC ), 1,
00531 $ WORK( JC ) )
00532 WORK( 2*N+JC ) = SIGN( ONE, Q( JC, JC ) )
00533 Q( JC, JC ) = ONE
00534 CALL SLARFG( N+1-JC, Z( JC, JC ), Z( JC+1, JC ), 1,
00535 $ WORK( N+JC ) )
00536 WORK( 3*N+JC ) = SIGN( ONE, Z( JC, JC ) )
00537 Z( JC, JC ) = ONE
00538 40 CONTINUE
00539 Q( N, N ) = ONE
00540 WORK( N ) = ZERO
00541 WORK( 3*N ) = SIGN( ONE, SLARND( 2, ISEED ) )
00542 Z( N, N ) = ONE
00543 WORK( 2*N ) = ZERO
00544 WORK( 4*N ) = SIGN( ONE, SLARND( 2, ISEED ) )
00545
00546
00547
00548 DO 60 JC = 1, N
00549 DO 50 JR = 1, N
00550 A( JR, JC ) = WORK( 2*N+JR )*WORK( 3*N+JC )*
00551 $ A( JR, JC )
00552 B( JR, JC ) = WORK( 2*N+JR )*WORK( 3*N+JC )*
00553 $ B( JR, JC )
00554 50 CONTINUE
00555 60 CONTINUE
00556 CALL SORM2R( 'L', 'N', N, N, N-1, Q, LDQ, WORK, A,
00557 $ LDA, WORK( 2*N+1 ), IERR )
00558 IF( IERR.NE.0 )
00559 $ GO TO 90
00560 CALL SORM2R( 'R', 'T', N, N, N-1, Z, LDQ, WORK( N+1 ),
00561 $ A, LDA, WORK( 2*N+1 ), IERR )
00562 IF( IERR.NE.0 )
00563 $ GO TO 90
00564 CALL SORM2R( 'L', 'N', N, N, N-1, Q, LDQ, WORK, B,
00565 $ LDA, WORK( 2*N+1 ), IERR )
00566 IF( IERR.NE.0 )
00567 $ GO TO 90
00568 CALL SORM2R( 'R', 'T', N, N, N-1, Z, LDQ, WORK( N+1 ),
00569 $ B, LDA, WORK( 2*N+1 ), IERR )
00570 IF( IERR.NE.0 )
00571 $ GO TO 90
00572 END IF
00573 ELSE
00574
00575
00576
00577 DO 80 JC = 1, N
00578 DO 70 JR = 1, N
00579 A( JR, JC ) = RMAGN( KAMAGN( JTYPE ) )*
00580 $ SLARND( 2, ISEED )
00581 B( JR, JC ) = RMAGN( KBMAGN( JTYPE ) )*
00582 $ SLARND( 2, ISEED )
00583 70 CONTINUE
00584 80 CONTINUE
00585 END IF
00586
00587 90 CONTINUE
00588
00589 IF( IERR.NE.0 ) THEN
00590 WRITE( NOUNIT, FMT = 9999 )'Generator', IERR, N, JTYPE,
00591 $ IOLDSD
00592 INFO = ABS( IERR )
00593 RETURN
00594 END IF
00595
00596 100 CONTINUE
00597
00598 DO 110 I = 1, 7
00599 RESULT( I ) = -ONE
00600 110 CONTINUE
00601
00602
00603
00604 CALL SLACPY( ' ', N, N, A, LDA, S, LDA )
00605 CALL SLACPY( ' ', N, N, B, LDA, T, LDA )
00606 CALL SGGEV( 'V', 'V', N, S, LDA, T, LDA, ALPHAR, ALPHAI,
00607 $ BETA, Q, LDQ, Z, LDQ, WORK, LWORK, IERR )
00608 IF( IERR.NE.0 .AND. IERR.NE.N+1 ) THEN
00609 RESULT( 1 ) = ULPINV
00610 WRITE( NOUNIT, FMT = 9999 )'SGGEV1', IERR, N, JTYPE,
00611 $ IOLDSD
00612 INFO = ABS( IERR )
00613 GO TO 190
00614 END IF
00615
00616
00617
00618 CALL SGET52( .TRUE., N, A, LDA, B, LDA, Q, LDQ, ALPHAR,
00619 $ ALPHAI, BETA, WORK, RESULT( 1 ) )
00620 IF( RESULT( 2 ).GT.THRESH ) THEN
00621 WRITE( NOUNIT, FMT = 9998 )'Left', 'SGGEV1',
00622 $ RESULT( 2 ), N, JTYPE, IOLDSD
00623 END IF
00624
00625
00626
00627 CALL SGET52( .FALSE., N, A, LDA, B, LDA, Z, LDQ, ALPHAR,
00628 $ ALPHAI, BETA, WORK, RESULT( 3 ) )
00629 IF( RESULT( 4 ).GT.THRESH ) THEN
00630 WRITE( NOUNIT, FMT = 9998 )'Right', 'SGGEV1',
00631 $ RESULT( 4 ), N, JTYPE, IOLDSD
00632 END IF
00633
00634
00635
00636 CALL SLACPY( ' ', N, N, A, LDA, S, LDA )
00637 CALL SLACPY( ' ', N, N, B, LDA, T, LDA )
00638 CALL SGGEV( 'N', 'N', N, S, LDA, T, LDA, ALPHR1, ALPHI1,
00639 $ BETA1, Q, LDQ, Z, LDQ, WORK, LWORK, IERR )
00640 IF( IERR.NE.0 .AND. IERR.NE.N+1 ) THEN
00641 RESULT( 1 ) = ULPINV
00642 WRITE( NOUNIT, FMT = 9999 )'SGGEV2', IERR, N, JTYPE,
00643 $ IOLDSD
00644 INFO = ABS( IERR )
00645 GO TO 190
00646 END IF
00647
00648 DO 120 J = 1, N
00649 IF( ALPHAR( J ).NE.ALPHR1( J ) .OR. ALPHAI( J ).NE.
00650 $ ALPHI1( J ) .OR. BETA( J ).NE.BETA1( J ) )
00651 $ RESULT( 5 ) = ULPINV
00652 120 CONTINUE
00653
00654
00655
00656
00657 CALL SLACPY( ' ', N, N, A, LDA, S, LDA )
00658 CALL SLACPY( ' ', N, N, B, LDA, T, LDA )
00659 CALL SGGEV( 'V', 'N', N, S, LDA, T, LDA, ALPHR1, ALPHI1,
00660 $ BETA1, QE, LDQE, Z, LDQ, WORK, LWORK, IERR )
00661 IF( IERR.NE.0 .AND. IERR.NE.N+1 ) THEN
00662 RESULT( 1 ) = ULPINV
00663 WRITE( NOUNIT, FMT = 9999 )'SGGEV3', IERR, N, JTYPE,
00664 $ IOLDSD
00665 INFO = ABS( IERR )
00666 GO TO 190
00667 END IF
00668
00669 DO 130 J = 1, N
00670 IF( ALPHAR( J ).NE.ALPHR1( J ) .OR. ALPHAI( J ).NE.
00671 $ ALPHI1( J ) .OR. BETA( J ).NE.BETA1( J ) )
00672 $ RESULT( 6 ) = ULPINV
00673 130 CONTINUE
00674
00675 DO 150 J = 1, N
00676 DO 140 JC = 1, N
00677 IF( Q( J, JC ).NE.QE( J, JC ) )
00678 $ RESULT( 6 ) = ULPINV
00679 140 CONTINUE
00680 150 CONTINUE
00681
00682
00683
00684
00685 CALL SLACPY( ' ', N, N, A, LDA, S, LDA )
00686 CALL SLACPY( ' ', N, N, B, LDA, T, LDA )
00687 CALL SGGEV( 'N', 'V', N, S, LDA, T, LDA, ALPHR1, ALPHI1,
00688 $ BETA1, Q, LDQ, QE, LDQE, WORK, LWORK, IERR )
00689 IF( IERR.NE.0 .AND. IERR.NE.N+1 ) THEN
00690 RESULT( 1 ) = ULPINV
00691 WRITE( NOUNIT, FMT = 9999 )'SGGEV4', IERR, N, JTYPE,
00692 $ IOLDSD
00693 INFO = ABS( IERR )
00694 GO TO 190
00695 END IF
00696
00697 DO 160 J = 1, N
00698 IF( ALPHAR( J ).NE.ALPHR1( J ) .OR. ALPHAI( J ).NE.
00699 $ ALPHI1( J ) .OR. BETA( J ).NE.BETA1( J ) )
00700 $ RESULT( 7 ) = ULPINV
00701 160 CONTINUE
00702
00703 DO 180 J = 1, N
00704 DO 170 JC = 1, N
00705 IF( Z( J, JC ).NE.QE( J, JC ) )
00706 $ RESULT( 7 ) = ULPINV
00707 170 CONTINUE
00708 180 CONTINUE
00709
00710
00711
00712 190 CONTINUE
00713
00714 NTESTT = NTESTT + 7
00715
00716
00717
00718 DO 200 JR = 1, 7
00719 IF( RESULT( JR ).GE.THRESH ) THEN
00720
00721
00722
00723
00724 IF( NERRS.EQ.0 ) THEN
00725 WRITE( NOUNIT, FMT = 9997 )'SGV'
00726
00727
00728
00729 WRITE( NOUNIT, FMT = 9996 )
00730 WRITE( NOUNIT, FMT = 9995 )
00731 WRITE( NOUNIT, FMT = 9994 )'Orthogonal'
00732
00733
00734
00735 WRITE( NOUNIT, FMT = 9993 )
00736
00737 END IF
00738 NERRS = NERRS + 1
00739 IF( RESULT( JR ).LT.10000.0 ) THEN
00740 WRITE( NOUNIT, FMT = 9992 )N, JTYPE, IOLDSD, JR,
00741 $ RESULT( JR )
00742 ELSE
00743 WRITE( NOUNIT, FMT = 9991 )N, JTYPE, IOLDSD, JR,
00744 $ RESULT( JR )
00745 END IF
00746 END IF
00747 200 CONTINUE
00748
00749 210 CONTINUE
00750 220 CONTINUE
00751
00752
00753
00754 CALL ALASVM( 'SGV', NOUNIT, NERRS, NTESTT, 0 )
00755
00756 WORK( 1 ) = MAXWRK
00757
00758 RETURN
00759
00760 9999 FORMAT( ' SDRGEV: ', A, ' returned INFO=', I6, '.', / 3X, 'N=',
00761 $ I6, ', JTYPE=', I6, ', ISEED=(', 4( I4, ',' ), I5, ')' )
00762
00763 9998 FORMAT( ' SDRGEV: ', A, ' Eigenvectors from ', A, ' incorrectly ',
00764 $ 'normalized.', / ' Bits of error=', 0P, G10.3, ',', 3X,
00765 $ 'N=', I4, ', JTYPE=', I3, ', ISEED=(', 4( I4, ',' ), I5,
00766 $ ')' )
00767
00768 9997 FORMAT( / 1X, A3, ' -- Real Generalized eigenvalue problem driver'
00769 $ )
00770
00771 9996 FORMAT( ' Matrix types (see SDRGEV for details): ' )
00772
00773 9995 FORMAT( ' Special Matrices:', 23X,
00774 $ '(J''=transposed Jordan block)',
00775 $ / ' 1=(0,0) 2=(I,0) 3=(0,I) 4=(I,I) 5=(J'',J'') ',
00776 $ '6=(diag(J'',I), diag(I,J''))', / ' Diagonal Matrices: ( ',
00777 $ 'D=diag(0,1,2,...) )', / ' 7=(D,I) 9=(large*D, small*I',
00778 $ ') 11=(large*I, small*D) 13=(large*D, large*I)', /
00779 $ ' 8=(I,D) 10=(small*D, large*I) 12=(small*I, large*D) ',
00780 $ ' 14=(small*D, small*I)', / ' 15=(D, reversed D)' )
00781 9994 FORMAT( ' Matrices Rotated by Random ', A, ' Matrices U, V:',
00782 $ / ' 16=Transposed Jordan Blocks 19=geometric ',
00783 $ 'alpha, beta=0,1', / ' 17=arithm. alpha&beta ',
00784 $ ' 20=arithmetic alpha, beta=0,1', / ' 18=clustered ',
00785 $ 'alpha, beta=0,1 21=random alpha, beta=0,1',
00786 $ / ' Large & Small Matrices:', / ' 22=(large, small) ',
00787 $ '23=(small,large) 24=(small,small) 25=(large,large)',
00788 $ / ' 26=random O(1) matrices.' )
00789
00790 9993 FORMAT( / ' Tests performed: ',
00791 $ / ' 1 = max | ( b A - a B )''*l | / const.,',
00792 $ / ' 2 = | |VR(i)| - 1 | / ulp,',
00793 $ / ' 3 = max | ( b A - a B )*r | / const.',
00794 $ / ' 4 = | |VL(i)| - 1 | / ulp,',
00795 $ / ' 5 = 0 if W same no matter if r or l computed,',
00796 $ / ' 6 = 0 if l same no matter if l computed,',
00797 $ / ' 7 = 0 if r same no matter if r computed,', / 1X )
00798 9992 FORMAT( ' Matrix order=', I5, ', type=', I2, ', seed=',
00799 $ 4( I4, ',' ), ' result ', I2, ' is', 0P, F8.2 )
00800 9991 FORMAT( ' Matrix order=', I5, ', type=', I2, ', seed=',
00801 $ 4( I4, ',' ), ' result ', I2, ' is', 1P, E10.3 )
00802
00803
00804
00805 END