Skip to content

Commit 9f2233b

Browse files
authored
Merge pull request #4044 from martin-frbg/lapack814
Fix typos in comments of LAPACK sources (Reference-LAPACK PR 814)
2 parents 617e8bc + 47715b5 commit 9f2233b

35 files changed

+67
-69
lines changed

lapack-netlib/SRC/cgejsv.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ SUBROUTINE CGEJSV( JOBA, JOBU, JOBV, JOBR, JOBT, JOBP,
18191819
IF ( CONDR2 .GE. COND_OK ) THEN
18201820
* .. save the Householder vectors used for Q3
18211821
* (this overwrites the copy of R2, as it will not be
1822-
* needed in this branch, but it does not overwritte the
1822+
* needed in this branch, but it does not overwrite the
18231823
* Huseholder vectors of Q2.).
18241824
CALL CLACPY( 'U', NR, NR, V, LDV, CWORK(2*N+1), N )
18251825
* .. and the rest of the information on Q3 is in
@@ -1842,7 +1842,7 @@ SUBROUTINE CGEJSV( JOBA, JOBU, JOBV, JOBR, JOBT, JOBP,
18421842
END IF
18431843
*
18441844
* Second preconditioning finished; continue with Jacobi SVD
1845-
* The input matrix is lower trinagular.
1845+
* The input matrix is lower triangular.
18461846
*
18471847
* Recover the right singular vectors as solution of a well
18481848
* conditioned triangular matrix equation.
@@ -1886,7 +1886,7 @@ SUBROUTINE CGEJSV( JOBA, JOBU, JOBV, JOBR, JOBT, JOBP,
18861886
ELSE IF ( CONDR2 .LT. COND_OK ) THEN
18871887
*
18881888
* The matrix R2 is inverted. The solution of the matrix equation
1889-
* is Q3^* * V3 = the product of the Jacobi rotations (appplied to
1889+
* is Q3^* * V3 = the product of the Jacobi rotations (applied to
18901890
* the lower triangular L3 from the LQ factorization of
18911891
* R2=L3*Q3), pre-multiplied with the transposed Q3.
18921892
CALL CGESVJ( 'L', 'U', 'N', NR, NR, V, LDV, SVA, NR, U,

lapack-netlib/SRC/cgsvj0.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@
117117
*> \param[in] MV
118118
*> \verbatim
119119
*> MV is INTEGER
120-
*> If JOBV = 'A', then MV rows of V are post-multipled by a
120+
*> If JOBV = 'A', then MV rows of V are post-multiplied by a
121121
*> sequence of Jacobi rotations.
122122
*> If JOBV = 'N', then MV is not referenced.
123123
*> \endverbatim
124124
*>
125125
*> \param[in,out] V
126126
*> \verbatim
127127
*> V is COMPLEX array, dimension (LDV,N)
128-
*> If JOBV = 'V' then N rows of V are post-multipled by a
128+
*> If JOBV = 'V' then N rows of V are post-multiplied by a
129129
*> sequence of Jacobi rotations.
130-
*> If JOBV = 'A' then MV rows of V are post-multipled by a
130+
*> If JOBV = 'A' then MV rows of V are post-multiplied by a
131131
*> sequence of Jacobi rotations.
132132
*> If JOBV = 'N', then V is not referenced.
133133
*> \endverbatim

lapack-netlib/SRC/cgsvj1.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@
147147
*> \param[in] MV
148148
*> \verbatim
149149
*> MV is INTEGER
150-
*> If JOBV = 'A', then MV rows of V are post-multipled by a
150+
*> If JOBV = 'A', then MV rows of V are post-multiplied by a
151151
*> sequence of Jacobi rotations.
152152
*> If JOBV = 'N', then MV is not referenced.
153153
*> \endverbatim
154154
*>
155155
*> \param[in,out] V
156156
*> \verbatim
157157
*> V is COMPLEX array, dimension (LDV,N)
158-
*> If JOBV = 'V' then N rows of V are post-multipled by a
158+
*> If JOBV = 'V' then N rows of V are post-multiplied by a
159159
*> sequence of Jacobi rotations.
160-
*> If JOBV = 'A' then MV rows of V are post-multipled by a
160+
*> If JOBV = 'A' then MV rows of V are post-multiplied by a
161161
*> sequence of Jacobi rotations.
162162
*> If JOBV = 'N', then V is not referenced.
163163
*> \endverbatim

lapack-netlib/SRC/clalsa.f

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
*>
4343
*> \verbatim
4444
*>
45-
*> CLALSA is an itermediate step in solving the least squares problem
45+
*> CLALSA is an intermediate step in solving the least squares problem
4646
*> by computing the SVD of the coefficient matrix in compact form (The
47-
*> singular vectors are computed as products of simple orthorgonal
47+
*> singular vectors are computed as products of simple orthogonal
4848
*> matrices.).
4949
*>
5050
*> If ICOMPQ = 0, CLALSA applies the inverse of the left singular vector

lapack-netlib/SRC/cstegr.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
*>
5757
*> Note : CSTEGR and CSTEMR work only on machines which follow
5858
*> IEEE-754 floating-point standard in their handling of infinities and
59-
*> NaNs. Normal execution may create these exceptiona values and hence
59+
*> NaNs. Normal execution may create these exceptional values and hence
6060
*> may abort due to a floating point exception in environments which
6161
*> do not conform to the IEEE-754 standard.
6262
*> \endverbatim

lapack-netlib/SRC/ctgsen.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
*> [ kron(In2, B11) -kron(B22**H, In1) ].
340340
*>
341341
*> Here, Inx is the identity matrix of size nx and A22**H is the
342-
*> conjuguate transpose of A22. kron(X, Y) is the Kronecker product between
342+
*> conjugate transpose of A22. kron(X, Y) is the Kronecker product between
343343
*> the matrices X and Y.
344344
*>
345345
*> When DIF(2) is small, small changes in (A, B) can cause large changes

lapack-netlib/SRC/dgejsv.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
*>
363363
*> \param[out] IWORK
364364
*> \verbatim
365-
*> IWORK is INTEGER array, dimension (M+3*N).
365+
*> IWORK is INTEGER array, dimension (MAX(3,M+3*N)).
366366
*> On exit,
367367
*> IWORK(1) = the numerical rank determined after the initial
368368
*> QR factorization with pivoting. See the descriptions
@@ -1386,7 +1386,7 @@ SUBROUTINE DGEJSV( JOBA, JOBU, JOBV, JOBR, JOBT, JOBP,
13861386
IF ( CONDR2 .GE. COND_OK ) THEN
13871387
* .. save the Householder vectors used for Q3
13881388
* (this overwrites the copy of R2, as it will not be
1389-
* needed in this branch, but it does not overwritte the
1389+
* needed in this branch, but it does not overwrite the
13901390
* Huseholder vectors of Q2.).
13911391
CALL DLACPY( 'U', NR, NR, V, LDV, WORK(2*N+1), N )
13921392
* .. and the rest of the information on Q3 is in
@@ -1409,7 +1409,7 @@ SUBROUTINE DGEJSV( JOBA, JOBU, JOBV, JOBR, JOBT, JOBP,
14091409
END IF
14101410
*
14111411
* Second preconditioning finished; continue with Jacobi SVD
1412-
* The input matrix is lower trinagular.
1412+
* The input matrix is lower triangular.
14131413
*
14141414
* Recover the right singular vectors as solution of a well
14151415
* conditioned triangular matrix equation.
@@ -1454,7 +1454,7 @@ SUBROUTINE DGEJSV( JOBA, JOBU, JOBV, JOBR, JOBT, JOBP,
14541454
* :) .. the input matrix A is very likely a relative of
14551455
* the Kahan matrix :)
14561456
* The matrix R2 is inverted. The solution of the matrix equation
1457-
* is Q3^T*V3 = the product of the Jacobi rotations (appplied to
1457+
* is Q3^T*V3 = the product of the Jacobi rotations (applied to
14581458
* the lower triangular L3 from the LQ factorization of
14591459
* R2=L3*Q3), pre-multiplied with the transposed Q3.
14601460
CALL DGESVJ( 'L', 'U', 'N', NR, NR, V, LDV, SVA, NR, U,

lapack-netlib/SRC/dgsvj0.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@
117117
*> \param[in] MV
118118
*> \verbatim
119119
*> MV is INTEGER
120-
*> If JOBV = 'A', then MV rows of V are post-multipled by a
120+
*> If JOBV = 'A', then MV rows of V are post-multiplied by a
121121
*> sequence of Jacobi rotations.
122122
*> If JOBV = 'N', then MV is not referenced.
123123
*> \endverbatim
124124
*>
125125
*> \param[in,out] V
126126
*> \verbatim
127127
*> V is DOUBLE PRECISION array, dimension (LDV,N)
128-
*> If JOBV = 'V' then N rows of V are post-multipled by a
128+
*> If JOBV = 'V' then N rows of V are post-multiplied by a
129129
*> sequence of Jacobi rotations.
130-
*> If JOBV = 'A' then MV rows of V are post-multipled by a
130+
*> If JOBV = 'A' then MV rows of V are post-multiplied by a
131131
*> sequence of Jacobi rotations.
132132
*> If JOBV = 'N', then V is not referenced.
133133
*> \endverbatim

lapack-netlib/SRC/dgsvj1.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@
147147
*> \param[in] MV
148148
*> \verbatim
149149
*> MV is INTEGER
150-
*> If JOBV = 'A', then MV rows of V are post-multipled by a
150+
*> If JOBV = 'A', then MV rows of V are post-multiplied by a
151151
*> sequence of Jacobi rotations.
152152
*> If JOBV = 'N', then MV is not referenced.
153153
*> \endverbatim
154154
*>
155155
*> \param[in,out] V
156156
*> \verbatim
157157
*> V is DOUBLE PRECISION array, dimension (LDV,N)
158-
*> If JOBV = 'V', then N rows of V are post-multipled by a
158+
*> If JOBV = 'V', then N rows of V are post-multiplied by a
159159
*> sequence of Jacobi rotations.
160-
*> If JOBV = 'A', then MV rows of V are post-multipled by a
160+
*> If JOBV = 'A', then MV rows of V are post-multiplied by a
161161
*> sequence of Jacobi rotations.
162162
*> If JOBV = 'N', then V is not referenced.
163163
*> \endverbatim

lapack-netlib/SRC/dlalsa.f

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
*>
4444
*> \verbatim
4545
*>
46-
*> DLALSA is an itermediate step in solving the least squares problem
46+
*> DLALSA is an intermediate step in solving the least squares problem
4747
*> by computing the SVD of the coefficient matrix in compact form (The
48-
*> singular vectors are computed as products of simple orthorgonal
48+
*> singular vectors are computed as products of simple orthogonal
4949
*> matrices.).
5050
*>
5151
*> If ICOMPQ = 0, DLALSA applies the inverse of the left singular vector

0 commit comments

Comments
 (0)