Skip to content

Commit a6c2cb8

Browse files
authored
Merge pull request #3193 from martin-frbg/lapack538
Apply lapack-testing fixes from Reference-LAPACK PR538
2 parents d511a7b + 3526ff2 commit a6c2cb8

File tree

11 files changed

+33
-32
lines changed

11 files changed

+33
-32
lines changed

lapack-netlib/TESTING/LIN/cdrvgex.f

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,10 @@ SUBROUTINE CDRVGE( DOTYPE, NN, NVAL, NRHS, THRESH, TSTERR, NMAX,
707707
CALL CLACPY( 'Full', N, NRHS, BSAV, LDA, B, LDA )
708708

709709
IF( .NOT.PREFAC )
710-
$ CALL CLASET( 'Full', N, N, ZERO, ZERO, AFAC,
711-
$ LDA )
712-
CALL CLASET( 'Full', N, NRHS, ZERO, ZERO, X, LDA )
710+
$ CALL CLASET( 'Full', N, N, CMPLX( ZERO ),
711+
$ CMPLX( ZERO ), AFAC, LDA )
712+
CALL CLASET( 'Full', N, NRHS, CMPLX( ZERO ),
713+
$ CMPLX( ZERO ), X, LDA )
713714
IF( IEQUED.GT.1 .AND. N.GT.0 ) THEN
714715
*
715716
* Equilibrate the matrix if FACT = 'F' and

lapack-netlib/TESTING/LIN/cdrvhe_aa_2stage.f

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ SUBROUTINE CDRVHE_AA_2STAGE(
449449
* Reconstruct matrix from factors and compute
450450
* residual.
451451
*
452-
c CALL CHET01_AA( UPLO, N, A, LDA, AFAC, LDA,
453-
c $ IWORK, AINV, LDA, RWORK,
454-
c $ RESULT( 2 ) )
455-
c NT = 2
456-
NT = 1
452+
c CALL CHET01_AA( UPLO, N, A, LDA, AFAC, LDA,
453+
c $ IWORK, AINV, LDA, RWORK,
454+
c $ RESULT( 2 ) )
455+
c NT = 2
456+
NT = 1
457457
*
458458
* Print information about the tests that did not pass
459459
* the threshold.

lapack-netlib/TESTING/LIN/cdrvrfp.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,19 +449,19 @@ SUBROUTINE CDRVRFP( NOUT, NN, NVAL, NNS, NSVAL, NNT, NTVAL,
449449
* Form the inverse of A.
450450
*
451451
CALL CPOTRI( UPLO, N, A, LDA, INFO )
452+
453+
IF ( N .NE. 0 ) THEN
452454
*
453-
* Compute the 1-norm condition number of A.
455+
* Compute the 1-norm condition number of A.
454456
*
455-
IF ( N .NE. 0 ) THEN
456457
AINVNM = CLANHE( '1', UPLO, N, A, LDA,
457458
+ S_WORK_CLANHE )
458459
RCONDC = ( ONE / ANORM ) / AINVNM
459460
*
460461
* Restore the matrix A.
461462
*
462-
CALL CLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
463+
CALL CLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
463464
END IF
464-
465465
*
466466
END IF
467467
*

lapack-netlib/TESTING/LIN/ddrvrfp.f

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,7 @@ SUBROUTINE DDRVRFP( NOUT, NN, NVAL, NNS, NSVAL, NNT, NTVAL,
443443
*
444444
CALL DPOTRI( UPLO, N, A, LDA, INFO )
445445

446-
IF ( N .NE. 0 ) THEN
447-
446+
IF ( N .NE. 0 ) THEN
448447
*
449448
* Compute the 1-norm condition number of A.
450449
*

lapack-netlib/TESTING/LIN/sdrvrfp.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ SUBROUTINE SDRVRFP( NOUT, NN, NVAL, NNS, NSVAL, NNT, NTVAL,
443443
*
444444
CALL SPOTRI( UPLO, N, A, LDA, INFO )
445445

446-
IF ( N .NE. 0 ) THEN
446+
IF ( N .NE. 0 ) THEN
447447
*
448448
* Compute the 1-norm condition number of A.
449449
*

lapack-netlib/TESTING/LIN/zdrvgex.f

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,10 @@ SUBROUTINE ZDRVGE( DOTYPE, NN, NVAL, NRHS, THRESH, TSTERR, NMAX,
707707
CALL ZLACPY( 'Full', N, NRHS, BSAV, LDA, B, LDA )
708708

709709
IF( .NOT.PREFAC )
710-
$ CALL ZLASET( 'Full', N, N, ZERO, ZERO, AFAC,
711-
$ LDA )
712-
CALL ZLASET( 'Full', N, NRHS, ZERO, ZERO, X, LDA )
710+
$ CALL ZLASET( 'Full', N, N, DCMPLX( ZERO ),
711+
$ DCMPLX( ZERO ), AFAC, LDA )
712+
CALL ZLASET( 'Full', N, NRHS, DCMPLX( ZERO ),
713+
$ DCMPLX( ZERO ), X, LDA )
713714
IF( IEQUED.GT.1 .AND. N.GT.0 ) THEN
714715
*
715716
* Equilibrate the matrix if FACT = 'F' and

lapack-netlib/TESTING/LIN/zdrvhex.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,10 @@ SUBROUTINE ZDRVHE( DOTYPE, NN, NVAL, NRHS, THRESH, TSTERR, NMAX,
599599
* Restore the matrices A and B.
600600
*
601601
IF( IFACT.EQ.2 )
602-
$ CALL ZLASET( UPLO, N, N, CMPLX( ZERO ),
603-
$ CMPLX( ZERO ), AFAC, LDA )
604-
CALL ZLASET( 'Full', N, NRHS, CMPLX( ZERO ),
605-
$ CMPLX( ZERO ), X, LDA )
602+
$ CALL ZLASET( UPLO, N, N, DCMPLX( ZERO ),
603+
$ DCMPLX( ZERO ), AFAC, LDA )
604+
CALL ZLASET( 'Full', N, NRHS, DCMPLX( ZERO ),
605+
$ DCMPLX( ZERO ), X, LDA )
606606
*
607607
* Solve the system and compute the condition number
608608
* and error bounds using ZHESVXX.

lapack-netlib/TESTING/LIN/zdrvpox.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,10 @@ SUBROUTINE ZDRVPO( DOTYPE, NN, NVAL, NRHS, THRESH, TSTERR, NMAX,
611611
CALL ZLACPY( 'Full', N, NRHS, BSAV, LDA, B, LDA )
612612

613613
IF( .NOT.PREFAC )
614-
$ CALL ZLASET( UPLO, N, N, CMPLX( ZERO ),
615-
$ CMPLX( ZERO ), AFAC, LDA )
616-
CALL ZLASET( 'Full', N, NRHS, CMPLX( ZERO ),
617-
$ CMPLX( ZERO ), X, LDA )
614+
$ CALL ZLASET( UPLO, N, N, DCMPLX( ZERO ),
615+
$ DCMPLX( ZERO ), AFAC, LDA )
616+
CALL ZLASET( 'Full', N, NRHS, DCMPLX( ZERO ),
617+
$ DCMPLX( ZERO ), X, LDA )
618618
IF( IEQUED.GT.1 .AND. N.GT.0 ) THEN
619619
*
620620
* Equilibrate the matrix if FACT='F' and

lapack-netlib/TESTING/LIN/zdrvrfp.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ SUBROUTINE ZDRVRFP( NOUT, NN, NVAL, NNS, NSVAL, NNT, NTVAL,
450450
*
451451
CALL ZPOTRI( UPLO, N, A, LDA, INFO )
452452

453-
IF ( N .NE. 0 ) THEN
453+
IF ( N .NE. 0 ) THEN
454454
*
455455
* Compute the 1-norm condition number of A.
456456
*

lapack-netlib/TESTING/LIN/zdrvsyx.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,10 @@ SUBROUTINE ZDRVSY( DOTYPE, NN, NVAL, NRHS, THRESH, TSTERR, NMAX,
605605
* Restore the matrices A and B.
606606
*
607607
IF( IFACT.EQ.2 )
608-
$ CALL ZLASET( UPLO, N, N, CMPLX( ZERO ),
609-
$ CMPLX( ZERO ), AFAC, LDA )
610-
CALL ZLASET( 'Full', N, NRHS, CMPLX( ZERO ),
611-
$ CMPLX( ZERO ), X, LDA )
608+
$ CALL ZLASET( UPLO, N, N, DCMPLX( ZERO ),
609+
$ DCMPLX( ZERO ), AFAC, LDA )
610+
CALL ZLASET( 'Full', N, NRHS, DCMPLX( ZERO ),
611+
$ DCMPLX( ZERO ), X, LDA )
612612
*
613613
* Solve the system and compute the condition number
614614
* and error bounds using ZSYSVXX.

0 commit comments

Comments
 (0)