Skip to content

Commit 121b5c5

Browse files
Merge pull request #566 from jip/fix
comments fixed: synced with code in xGTT02 (#3 from PR#562 discussion)
2 parents 1c8d81a + 6d69cc3 commit 121b5c5

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

TESTING/LIN/cgtt02.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*>
3030
*> CGTT02 computes the residual for the solution to a tridiagonal
3131
*> system of equations:
32-
*> RESID = norm(B - op(A)*X) / (norm(A) * norm(X) * EPS),
32+
*> RESID = norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS),
3333
*> where EPS is the machine epsilon.
3434
*> \endverbatim
3535
*
@@ -105,7 +105,7 @@
105105
*> \param[out] RESID
106106
*> \verbatim
107107
*> RESID is REAL
108-
*> norm(B - op(A)*X) / (norm(A) * norm(X) * EPS)
108+
*> norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS)
109109
*> \endverbatim
110110
*
111111
* Authors:
@@ -166,7 +166,7 @@ SUBROUTINE CGTT02( TRANS, N, NRHS, DL, D, DU, X, LDX, B, LDB,
166166
$ RETURN
167167
*
168168
* Compute the maximum over the number of right hand sides of
169-
* norm(B - op(A)*X) / ( norm(A) * norm(X) * EPS ).
169+
* norm(B - op(A)*X) / ( norm(op(A)) * norm(X) * EPS ).
170170
*
171171
IF( LSAME( TRANS, 'N' ) ) THEN
172172
ANORM = CLANGT( '1', N, DL, D, DU )

TESTING/LIN/dgtt02.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*>
3030
*> DGTT02 computes the residual for the solution to a tridiagonal
3131
*> system of equations:
32-
*> RESID = norm(B - op(A)*X) / (norm(A) * norm(X) * EPS),
32+
*> RESID = norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS),
3333
*> where EPS is the machine epsilon.
3434
*> \endverbatim
3535
*
@@ -105,7 +105,7 @@
105105
*> \param[out] RESID
106106
*> \verbatim
107107
*> RESID is DOUBLE PRECISION
108-
*> norm(B - op(A)*X) / (norm(A) * norm(X) * EPS)
108+
*> norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS)
109109
*> \endverbatim
110110
*
111111
* Authors:
@@ -166,7 +166,7 @@ SUBROUTINE DGTT02( TRANS, N, NRHS, DL, D, DU, X, LDX, B, LDB,
166166
$ RETURN
167167
*
168168
* Compute the maximum over the number of right hand sides of
169-
* norm(B - op(A)*X) / ( norm(A) * norm(X) * EPS ).
169+
* norm(B - op(A)*X) / ( norm(op(A)) * norm(X) * EPS ).
170170
*
171171
IF( LSAME( TRANS, 'N' ) ) THEN
172172
ANORM = DLANGT( '1', N, DL, D, DU )

TESTING/LIN/sgtt02.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*>
3030
*> SGTT02 computes the residual for the solution to a tridiagonal
3131
*> system of equations:
32-
*> RESID = norm(B - op(A)*X) / (norm(A) * norm(X) * EPS),
32+
*> RESID = norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS),
3333
*> where EPS is the machine epsilon.
3434
*> \endverbatim
3535
*
@@ -105,7 +105,7 @@
105105
*> \param[out] RESID
106106
*> \verbatim
107107
*> RESID is REAL
108-
*> norm(B - op(A)*X) / (norm(A) * norm(X) * EPS)
108+
*> norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS)
109109
*> \endverbatim
110110
*
111111
* Authors:
@@ -166,7 +166,7 @@ SUBROUTINE SGTT02( TRANS, N, NRHS, DL, D, DU, X, LDX, B, LDB,
166166
$ RETURN
167167
*
168168
* Compute the maximum over the number of right hand sides of
169-
* norm(B - op(A)*X) / ( norm(A) * norm(X) * EPS ).
169+
* norm(B - op(A)*X) / ( norm(op(A)) * norm(X) * EPS ).
170170
*
171171
IF( LSAME( TRANS, 'N' ) ) THEN
172172
ANORM = SLANGT( '1', N, DL, D, DU )

TESTING/LIN/zgtt02.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*>
3030
*> ZGTT02 computes the residual for the solution to a tridiagonal
3131
*> system of equations:
32-
*> RESID = norm(B - op(A)*X) / (norm(A) * norm(X) * EPS),
32+
*> RESID = norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS),
3333
*> where EPS is the machine epsilon.
3434
*> \endverbatim
3535
*
@@ -105,7 +105,7 @@
105105
*> \param[out] RESID
106106
*> \verbatim
107107
*> RESID is DOUBLE PRECISION
108-
*> norm(B - op(A)*X) / (norm(A) * norm(X) * EPS)
108+
*> norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS)
109109
*> \endverbatim
110110
*
111111
* Authors:
@@ -166,7 +166,7 @@ SUBROUTINE ZGTT02( TRANS, N, NRHS, DL, D, DU, X, LDX, B, LDB,
166166
$ RETURN
167167
*
168168
* Compute the maximum over the number of right hand sides of
169-
* norm(B - op(A)*X) / ( norm(A) * norm(X) * EPS ).
169+
* norm(B - op(A)*X) / ( norm(op(A)) * norm(X) * EPS ).
170170
*
171171
IF( LSAME( TRANS, 'N' ) ) THEN
172172
ANORM = ZLANGT( '1', N, DL, D, DU )

0 commit comments

Comments
 (0)