Skip to content

Commit f06a027

Browse files
committed
unify comments: expression for residual
This resolves discussion in PR Reference-LAPACK#582.
1 parent 79aa0f2 commit f06a027

File tree

12 files changed

+48
-44
lines changed

12 files changed

+48
-44
lines changed

TESTING/LIN/ctbt02.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
*>
3131
*> CTBT02 computes the residual for the computed solution to a
3232
*> triangular system of linear equations op(A)*X = B, when A is a
33-
*> triangular band matrix. The test ratio is the maximum over the
34-
*> number of right hand sides of
35-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
36-
*> where op(A) = A, A**T, or A**H, and EPS is the machine epsilon.
33+
*> triangular band matrix. The test ratio is the maximum over
34+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
35+
*> where op(A) = A, A**T, or A**H, b is the column of B, x is the
36+
*> solution vector, and EPS is the machine epsilon.
3737
*> \endverbatim
3838
*
3939
* Arguments:

TESTING/LIN/ctpt02.f

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
*> CTPT02 computes the residual for the computed solution to a
3131
*> triangular system of linear equations op(A)*X = B, when the
3232
*> triangular matrix A is stored in packed format. The test ratio is
33-
*> the maximum over the number of right hand sides of
34-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
35-
*> where op(A) = A, A**T, or A**H, and EPS is the machine epsilon.
33+
*> the maximum over
34+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
35+
*> where op(A) = A, A**T, or A**H, b is the column of B, x is the
36+
*> solution vector, and EPS is the machine epsilon.
3637
*> \endverbatim
3738
*
3839
* Arguments:

TESTING/LIN/ctrt02.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
*>
3131
*> CTRT02 computes the residual for the computed solution to a
3232
*> triangular system of linear equations op(A)*X = B, where A is a
33-
*> triangular matrix. The test ratio is the maximum over the number of
34-
*> right hand sides of
35-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
36-
*> where op(A) = A, A**T, or A**H, and EPS is the machine epsilon.
33+
*> triangular matrix. The test ratio is the maximum over
34+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
35+
*> where op(A) = A, A**T, or A**H, b is the column of B, x is the
36+
*> solution vector, and EPS is the machine epsilon.
3737
*> \endverbatim
3838
*
3939
* Arguments:

TESTING/LIN/dtbt02.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
*>
3030
*> DTBT02 computes the residual for the computed solution to a
3131
*> triangular system of linear equations op(A)*X = B, when A is a
32-
*> triangular band matrix. The test ratio is the maximum over the
33-
*> number of right hand sides of
34-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
35-
*> where op(A) = A, A**T, or A**H and EPS is the machine epsilon.
32+
*> triangular band matrix. The test ratio is the maximum over
33+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
34+
*> where op(A) = A or A**T, b is the column of B, x is the solution
35+
*> vector, and EPS is the machine epsilon.
3636
*> The norm used is the 1-norm.
3737
*> \endverbatim
3838
*

TESTING/LIN/dtpt02.f

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
*> DTPT02 computes the residual for the computed solution to a
3030
*> triangular system of linear equations op(A)*X = B, when the
3131
*> triangular matrix A is stored in packed format. The test ratio is
32-
*> the maximum over the number of right hand sides of
33-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
34-
*> where op(A) = A or A**T, and EPS is the machine epsilon.
32+
*> the maximum over
33+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
34+
*> where op(A) = A or A**T, b is the column of B, x is the solution
35+
*> vector, and EPS is the machine epsilon.
3536
*> The norm used is the 1-norm.
3637
*> \endverbatim
3738
*

TESTING/LIN/dtrt02.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
*>
3030
*> DTRT02 computes the residual for the computed solution to a
3131
*> triangular system of linear equations op(A)*X = B, where A is a
32-
*> triangular matrix. The test ratio is the maximum over the number of
33-
*> right hand sides of
34-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
35-
*> where op(A) = A or A**T, and EPS is the machine epsilon.
32+
*> triangular matrix. The test ratio is the maximum over
33+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
34+
*> where op(A) = A or A**T, b is the column of B, x is the solution
35+
*> vector, and EPS is the machine epsilon.
3636
*> The norm used is the 1-norm.
3737
*> \endverbatim
3838
*

TESTING/LIN/stbt02.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
*>
3030
*> STBT02 computes the residual for the computed solution to a
3131
*> triangular system of linear equations op(A)*X = B, when A is a
32-
*> triangular band matrix. The test ratio is the maximum over the
33-
*> number of right hand sides of
34-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
35-
*> where op(A) = A or A**T, and EPS is the machine epsilon.
32+
*> triangular band matrix. The test ratio is the maximum over
33+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
34+
*> where op(A) = A or A**T, b is the column of B, x is the solution
35+
*> vector, and EPS is the machine epsilon.
3636
*> The norm used is the 1-norm.
3737
*> \endverbatim
3838
*

TESTING/LIN/stpt02.f

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
*> STPT02 computes the residual for the computed solution to a
3030
*> triangular system of linear equations op(A)*X = B, when the
3131
*> triangular matrix A is stored in packed format. The test ratio is
32-
*> the maximum over the number of right hand sides of
33-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
34-
*> where op(A) = A or A**T, and EPS is the machine epsilon.
32+
*> the maximum over
33+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
34+
*> where op(A) = A or A**T, b is the column of B, x is the solution
35+
*> vector, and EPS is the machine epsilon.
3536
*> The norm used is the 1-norm.
3637
*> \endverbatim
3738
*

TESTING/LIN/strt02.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
*>
3030
*> STRT02 computes the residual for the computed solution to a
3131
*> triangular system of linear equations op(A)*X = B, where A is a
32-
*> triangular matrix. The test ratio is the maximum over the number of
33-
*> right hand sides of
34-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
35-
*> where op(A) = A or A**T, and EPS is the machine epsilon.
32+
*> triangular matrix. The test ratio is the maximum over
33+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
34+
*> where op(A) = A or A**T, b is the column of B, x is the solution
35+
*> vector, and EPS is the machine epsilon.
3636
*> The norm used is the 1-norm.
3737
*> \endverbatim
3838
*

TESTING/LIN/ztbt02.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
*>
3131
*> ZTBT02 computes the residual for the computed solution to a
3232
*> triangular system of linear equations op(A)*X = B, when A is a
33-
*> triangular band matrix. The test ratio is the maximum over the
34-
*> number of right hand sides of
35-
*> norm(op(A)*X - B) / ( norm(op(A)) * norm(X) * EPS ),
36-
*> where op(A) = A, A**T, or A**H, and EPS is the machine epsilon.
33+
*> triangular band matrix. The test ratio is the maximum over
34+
*> norm(b - op(A)*x) / ( ||op(A)||_1 * norm(x) * EPS ),
35+
*> where op(A) = A, A**T, or A**H, b is the column of B, x is the
36+
*> solution vector, and EPS is the machine epsilon.
3737
*> \endverbatim
3838
*
3939
* Arguments:

0 commit comments

Comments
 (0)