Skip to content

Commit 06312aa

Browse files
committed
Just C precision for testing
1 parent ae8737b commit 06312aa

12 files changed

Lines changed: 1169 additions & 99 deletions

SRC/zhetrf_aa_2stage.f

Lines changed: 65 additions & 67 deletions
Large diffs are not rendered by default.

TESTING/LIN/cchkaa.f

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
*> CHR 10 List types on next line if 0 < NTYPES < 10
5454
*> CHK 10 List types on next line if 0 < NTYPES < 10
5555
*> CHA 10 List types on next line if 0 < NTYPES < 10
56+
*> CH2 10 List types on next line if 0 < NTYPES < 10
5657
*> CHP 10 List types on next line if 0 < NTYPES < 10
5758
*> CSY 11 List types on next line if 0 < NTYPES < 11
5859
*> CSK 11 List types on next line if 0 < NTYPES < 11

TESTING/LIN/cchkhe_aa_2stage.f

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414
* IWORK, NOUT )
1515
*
1616
* .. Scalar Arguments ..
17-
* LOGICAL TSTERR
18-
* INTEGER NMAX, NN, NNB, NNS, NOUT
19-
* COMPLEX THRESH
17+
* LOGICAL TSTERR
18+
* INTEGER NN, NNB, NNS, NOUT
19+
* REAL THRESH
2020
* ..
2121
* .. Array Arguments ..
22-
* LOGICAL DOTYPE( * )
23-
* INTEGER IWORK( * ), NBVAL( * ), NSVAL( * ), NVAL( * )
24-
* COMPLEX A( * ), AFAC( * ), AINV( * ), B( * ),
25-
* $ RWORK( * ), WORK( * ), X( * ), XACT( * )
22+
* LOGICAL DOTYPE( * )
23+
* INTEGER IWORK( * ), NBVAL( * ), NSVAL( * ), NVAL( * )
24+
* REAL RWORK( * )
25+
* COMPLEX A( * ), AFAC( * ), AINV( * ), B( * ),
26+
* $ WORK( * ), X( * ), XACT( * )
2627
* ..
2728
*
2829
*
@@ -31,7 +32,7 @@
3132
*>
3233
*> \verbatim
3334
*>
34-
*> DCHKSY_AA_2STAGE tests CHETRF_AA_2STAGE, -TRS_AA_2STAGE.
35+
*> CCHKSY_AA_2STAGE tests CHETRF_AA_2STAGE, -TRS_AA_2STAGE.
3536
*> \endverbatim
3637
*
3738
* Arguments:
@@ -83,7 +84,7 @@
8384
*>
8485
*> \param[in] THRESH
8586
*> \verbatim
86-
*> THRESH is COMPLEX
87+
*> THRESH is REAL
8788
*> The threshold value for the test ratios. A result is
8889
*> included in the output file if RESULT >= THRESH. To have
8990
*> every test ratio printed, use THRESH = 0.
@@ -140,7 +141,7 @@
140141
*>
141142
*> \param[out] RWORK
142143
*> \verbatim
143-
*> RWORK is COMPLEX array, dimension (max(NMAX,2*NSMAX))
144+
*> RWORK is REAL array, dimension (max(NMAX,2*NSMAX))
144145
*> \endverbatim
145146
*>
146147
*> \param[out] IWORK
@@ -162,7 +163,8 @@
162163
*> \author Univ. of Colorado Denver
163164
*> \author NAG Ltd.
164165
*
165-
*> \date June 2017
166+
*> \date November 2017
167+
*
166168
*
167169
*> \ingroup complex_lin
168170
*
@@ -184,10 +186,11 @@ SUBROUTINE CCHKHE_AA_2STAGE( DOTYPE, NN, NVAL, NNB, NBVAL, NNS,
184186
REAL THRESH
185187
* ..
186188
* .. Array Arguments ..
187-
LOGICAL DOTYPE( * )
188-
INTEGER IWORK( * ), NBVAL( * ), NSVAL( * ), NVAL( * )
189-
COMPLEX A( * ), AFAC( * ), AINV( * ), B( * ),
190-
$ RWORK( * ), WORK( * ), X( * ), XACT( * )
189+
LOGICAL DOTYPE( * )
190+
INTEGER IWORK( * ), NBVAL( * ), NSVAL( * ), NVAL( * )
191+
REAL RWORK( * )
192+
COMPLEX A( * ), AFAC( * ), AINV( * ), B( * ),
193+
$ WORK( * ), X( * ), XACT( * )
191194
* ..
192195
*
193196
* =====================================================================
@@ -208,18 +211,18 @@ SUBROUTINE CCHKHE_AA_2STAGE( DOTYPE, NN, NVAL, NNB, NBVAL, NNS,
208211
INTEGER I, I1, I2, IMAT, IN, INB, INFO, IOFF, IRHS,
209212
$ IUPLO, IZERO, J, K, KL, KU, LDA, LWORK, MODE,
210213
$ N, NB, NERRS, NFAIL, NIMAT, NRHS, NRUN, NT
211-
COMPLEX ANORM, CNDNUM
214+
REAL ANORM, CNDNUM
212215
* ..
213216
* .. Local Arrays ..
214217
CHARACTER UPLOS( 2 )
215218
INTEGER ISEED( 4 ), ISEEDY( 4 )
216219
REAL RESULT( NTESTS )
217220
* ..
218221
* .. External Subroutines ..
219-
EXTERNAL ALAERH, ALAHD, ALASUM, CERRHE, CLACPY, CLARHS,
220-
$ CLATB4, CLATMS, CPOT02, DSYT01,
221-
$ CHETRF_AA_2STAGE, CHETRS_AA_2STAGE,
222-
$ XLAENV
222+
EXTERNAL ALAERH, ALAHD, ALASUM, CERRHE, CLACPY,
223+
$ CLARHS, CLATB4, CLATMS, CPOT02,
224+
$ CHETRF_AA_2STAGE,
225+
$ CHETRS_AA_2STAGE, XLAENV
223226
* ..
224227
* .. Intrinsic Functions ..
225228
INTRINSIC MAX, MIN
@@ -241,6 +244,7 @@ SUBROUTINE CCHKHE_AA_2STAGE( DOTYPE, NN, NVAL, NNB, NBVAL, NNS,
241244
*
242245
* Initialize constants and the random number seed.
243246
*
247+
*
244248
* Test path
245249
*
246250
PATH( 1: 1 ) = 'Complex precision'
@@ -464,10 +468,12 @@ SUBROUTINE CCHKHE_AA_2STAGE( DOTYPE, NN, NVAL, NNB, NBVAL, NNS,
464468
*+ TEST 1
465469
* Reconstruct matrix from factors and compute residual.
466470
*
467-
c CALL DSYT01_AA( UPLO, N, A, LDA, AFAC, LDA, IWORK,
471+
*
472+
c NEED TO WRITE CHET01_AA_2STAGE
473+
c CALL CHET01_AA( UPLO, N, A, LDA, AFAC, LDA, IWORK,
468474
c $ AINV, LDA, RWORK, RESULT( 1 ) )
469475
c NT = 1
470-
NT = 0
476+
NT = 0
471477
*
472478
*
473479
* Print information about the tests that did not pass
@@ -530,7 +536,6 @@ SUBROUTINE CCHKHE_AA_2STAGE( DOTYPE, NN, NVAL, NNB, NBVAL, NNS,
530536
CALL CPOT02( UPLO, N, NRHS, A, LDA, X, LDA,
531537
$ WORK, LDA, RWORK, RESULT( 2 ) )
532538
*
533-
*
534539
* Print information about the tests that did not pass
535540
* the threshold.
536541
*
@@ -567,6 +572,6 @@ SUBROUTINE CCHKHE_AA_2STAGE( DOTYPE, NN, NVAL, NNB, NBVAL, NNS,
567572
$ I6 )
568573
RETURN
569574
*
570-
* End of DCHKSY_AA_2STAGE
575+
* End of CCHKSY_AA_2STAGE
571576
*
572577
END

TESTING/LIN/cdrvhe_aa_2stage.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ SUBROUTINE CDRVHE_AA_2STAGE(
204204
* .. External Subroutines ..
205205
EXTERNAL ALADHD, ALAERH, ALASVM, XLAENV, CERRVX,
206206
$ CGET04, CLACPY, CLARHS, CLATB4, CLATMS,
207-
$ CHESV_AA_2STAGE, CHET01_AA, CPOT02,
207+
$ CHESV_AA_2STAGE, CPOT02,
208208
$ CHETRF_AA_2STAGE
209209
* ..
210210
* .. Scalars in Common ..
@@ -453,7 +453,7 @@ SUBROUTINE CDRVHE_AA_2STAGE(
453453
c $ IWORK, AINV, LDA, RWORK,
454454
c $ RESULT( 2 ) )
455455
c NT = 2
456-
NT = 1
456+
NT = 1
457457
*
458458
* Print information about the tests that did not pass
459459
* the threshold.
@@ -485,6 +485,6 @@ SUBROUTINE CDRVHE_AA_2STAGE(
485485
$ ', test ', I2, ', ratio =', G12.5 )
486486
RETURN
487487
*
488-
* End of CDRVHE_AA
488+
* End of CDRVHE_AA_2STAGE
489489
*
490490
END

TESTING/LIN/dchkaa.f

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
*> DSR 10 List types on next line if 0 < NTYPES < 10
5454
*> DSK 10 List types on next line if 0 < NTYPES < 10
5555
*> DSA 10 List types on next line if 0 < NTYPES < 10
56+
*> DS2 10 List types on next line if 0 < NTYPES < 10
5657
*> DSP 10 List types on next line if 0 < NTYPES < 10
5758
*> DTR 18 List types on next line if 0 < NTYPES < 18
5859
*> DTP 18 List types on next line if 0 < NTYPES < 18

TESTING/LIN/schkaa.f

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
*> SSR 10 List types on next line if 0 < NTYPES < 10
5454
*> SSK 10 List types on next line if 0 < NTYPES < 10
5555
*> SSA 10 List types on next line if 0 < NTYPES < 10
56+
*> SS2 10 List types on next line if 0 < NTYPES < 10
5657
*> SSP 10 List types on next line if 0 < NTYPES < 10
5758
*> STR 18 List types on next line if 0 < NTYPES < 18
5859
*> STP 18 List types on next line if 0 < NTYPES < 18

TESTING/LIN/schksy_aa_2stage.f

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ SUBROUTINE SCHKSY_AA_2STAGE( DOTYPE, NN, NVAL, NNB, NBVAL, NNS,
218218
* ..
219219
* .. External Subroutines ..
220220
EXTERNAL ALAERH, ALAHD, ALASUM, SERRSY, SLACPY, SLARHS,
221-
$ SLATB4, SLATMS, SPOT02, SSYT01,
221+
$ SLATB4, SLATMS, SPOT02, SSYT01_AA,
222222
$ SSYTRF_AA_2STAGE, SSYTRS_AA_2STAGE,
223223
$ XLAENV
224224
* ..
@@ -465,10 +465,9 @@ SUBROUTINE SCHKSY_AA_2STAGE( DOTYPE, NN, NVAL, NNB, NBVAL, NNS,
465465
*+ TEST 1
466466
* Reconstruct matrix from factors and compute residual.
467467
*
468-
c CALL SSYT01_AA( UPLO, N, A, LDA, AFAC, LDA, IWORK,
469-
c $ AINV, LDA, RWORK, RESULT( 1 ) )
470-
c NT = 1
471-
NT = 0
468+
CALL SSYT01_AA( UPLO, N, A, LDA, AFAC, LDA, IWORK,
469+
$ AINV, LDA, RWORK, RESULT( 1 ) )
470+
NT = 1
472471
*
473472
*
474473
* Print information about the tests that did not pass

0 commit comments

Comments
 (0)