Skip to content

Commit 4506e47

Browse files
authored
Merge pull request #134 from echeresh/doc_fix
Fixes for mistakes in documentation in ?GETSLS, ?(SY|HE)TRS_AA, ?LAM?(SWLQ|TSQR), ?(GE|TP)M?(LQ|QR)T(|2|3)
2 parents 06f6368 + 1ca9c52 commit 4506e47

46 files changed

Lines changed: 215 additions & 207 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SRC/cgelqt.f

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
*>
102102
*> \verbatim
103103
*>
104-
*> The matrix V stores the elementary reflectors H(i) in the i-th column
105-
*> below the diagonal. For example, if M=5 and N=3, the matrix V is
104+
*> The matrix V stores the elementary reflectors H(i) in the i-th row
105+
*> above the diagonal. For example, if M=5 and N=3, the matrix V is
106106
*>
107107
*> V = ( 1 v1 v1 v1 v1 )
108108
*> ( 1 v2 v2 v2 )
@@ -111,11 +111,11 @@
111111
*>
112112
*> where the vi's represent the vectors which define H(i), which are returned
113113
*> in the matrix A. The 1's along the diagonal of V are not stored in A.
114-
*> Let K=MIN(M,N). The number of blocks is B = ceiling(K/NB), where each
115-
*> block is of order NB except for the last block, which is of order
116-
*> IB = K - (B-1)*NB. For each of the B blocks, a upper triangular block
117-
*> reflector factor is computed: T1, T2, ..., TB. The NB-by-NB (and IB-by-IB
118-
*> for the last block) T's are stored in the NB-by-N matrix T as
114+
*> Let K=MIN(M,N). The number of blocks is B = ceiling(K/MB), where each
115+
*> block is of order MB except for the last block, which is of order
116+
*> IB = K - (B-1)*MB. For each of the B blocks, a upper triangular block
117+
*> reflector factor is computed: T1, T2, ..., TB. The MB-by-MB (and IB-by-IB
118+
*> for the last block) T's are stored in the MB-by-K matrix T as
119119
*>
120120
*> T = (T1 T2 ... TB).
121121
*> \endverbatim

SRC/cgelqt3.f

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
*>
9393
*> \verbatim
9494
*>
95-
*> The matrix V stores the elementary reflectors H(i) in the i-th column
96-
*> below the diagonal. For example, if M=5 and N=3, the matrix V is
95+
*> The matrix V stores the elementary reflectors H(i) in the i-th row
96+
*> above the diagonal. For example, if M=5 and N=3, the matrix V is
9797
*>
9898
*> V = ( 1 v1 v1 v1 v1 )
9999
*> ( 1 v2 v2 v2 )

SRC/cgemlqt.f

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
*>
1919
*> \verbatim
2020
*>
21-
*> CGEMQRT overwrites the general real M-by-N matrix C with
21+
*> CGEMLQT overwrites the general real M-by-N matrix C with
2222
*>
2323
*> SIDE = 'L' SIDE = 'R'
2424
*> TRANS = 'N': Q C C Q
25-
*> TRANS = 'C': Q**C C C Q**C
25+
*> TRANS = 'C': Q**H C C Q**H
2626
*>
2727
*> where Q is a complex orthogonal matrix defined as the product of K
2828
*> elementary reflectors:
2929
*>
30-
*> Q = H(1) H(2) . . . H(K) = I - V C V**C
30+
*> Q = H(1) H(2) . . . H(K) = I - V T V**H
3131
*>
3232
*> generated using the compact WY representation as returned by CGELQT.
3333
*>
@@ -40,15 +40,15 @@
4040
*> \param[in] SIDE
4141
*> \verbatim
4242
*> SIDE is CHARACTER*1
43-
*> = 'L': apply Q or Q**C from the Left;
44-
*> = 'R': apply Q or Q**C from the Right.
43+
*> = 'L': apply Q or Q**H from the Left;
44+
*> = 'R': apply Q or Q**H from the Right.
4545
*> \endverbatim
4646
*>
4747
*> \param[in] TRANS
4848
*> \verbatim
4949
*> TRANS is CHARACTER*1
5050
*> = 'N': No transpose, apply Q;
51-
*> = 'C': Transpose, apply Q**C.
51+
*> = 'C': Transpose, apply Q**H.
5252
*> \endverbatim
5353
*>
5454
*> \param[in] M
@@ -82,7 +82,9 @@
8282
*>
8383
*> \param[in] V
8484
*> \verbatim
85-
*> V is COMPLEX array, dimension (LDV,K)
85+
*> V is COMPLEX array, dimension
86+
*> (LDV,M) if SIDE = 'L',
87+
*> (LDV,N) if SIDE = 'R'
8688
*> The i-th row must contain the vector which defines the
8789
*> elementary reflector H(i), for i = 1,2,...,k, as returned by
8890
*> DGELQT in the first K rows of its array argument A.
@@ -91,16 +93,14 @@
9193
*> \param[in] LDV
9294
*> \verbatim
9395
*> LDV is INTEGER
94-
*> The leading dimension of the array V.
95-
*> If SIDE = 'L', LDA >= max(1,M);
96-
*> if SIDE = 'R', LDA >= max(1,N).
96+
*> The leading dimension of the array V. LDV >= max(1,K).
9797
*> \endverbatim
9898
*>
9999
*> \param[in] T
100100
*> \verbatim
101101
*> T is COMPLEX array, dimension (LDT,K)
102102
*> The upper triangular factors of the block reflectors
103-
*> as returned by DGELQT, stored as a MB-by-M matrix.
103+
*> as returned by DGELQT, stored as a MB-by-K matrix.
104104
*> \endverbatim
105105
*>
106106
*> \param[in] LDT
@@ -113,7 +113,7 @@
113113
*> \verbatim
114114
*> C is COMPLEX array, dimension (LDC,N)
115115
*> On entry, the M-by-N matrix C.
116-
*> On exit, C is overwritten by Q C, Q**C C, C Q**C or C Q.
116+
*> On exit, C is overwritten by Q C, Q**H C, C Q**H or C Q.
117117
*> \endverbatim
118118
*>
119119
*> \param[in] LDC

SRC/cgeqrt.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
*> block is of order NB except for the last block, which is of order
134134
*> IB = K - (B-1)*NB. For each of the B blocks, a upper triangular block
135135
*> reflector factor is computed: T1, T2, ..., TB. The NB-by-NB (and IB-by-IB
136-
*> for the last block) T's are stored in the NB-by-N matrix T as
136+
*> for the last block) T's are stored in the NB-by-K matrix T as
137137
*>
138138
*> T = (T1 T2 ... TB).
139139
*> \endverbatim

SRC/cgetsls.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
*> \verbatim
5454
*> TRANS is CHARACTER*1
5555
*> = 'N': the linear system involves A;
56-
*> = 'C': the linear system involves A**C.
56+
*> = 'C': the linear system involves A**H.
5757
*> \endverbatim
5858
*>
5959
*> \param[in] M

SRC/chetrs_aa.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
*> of the matrix B. NRHS >= 0.
6767
*> \endverbatim
6868
*>
69-
*> \param[in,out] A
69+
*> \param[in] A
7070
*> \verbatim
7171
*> A is COMPLEX array, dimension (LDA,N)
7272
*> Details of factors computed by CHETRF_AA.

SRC/clamswlq.f

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*>
2424
*> SIDE = 'L' SIDE = 'R'
2525
*> TRANS = 'N': Q * C C * Q
26-
*> TRANS = 'T': Q**T * C C * Q**T
26+
*> TRANS = 'T': Q**H * C C * Q**H
2727
*> where Q is a real orthogonal matrix defined as the product of blocked
2828
*> elementary reflectors computed by short wide LQ
2929
*> factorization (CLASWLQ)
@@ -35,21 +35,21 @@
3535
*> \param[in] SIDE
3636
*> \verbatim
3737
*> SIDE is CHARACTER*1
38-
*> = 'L': apply Q or Q**T from the Left;
39-
*> = 'R': apply Q or Q**T from the Right.
38+
*> = 'L': apply Q or Q**H from the Left;
39+
*> = 'R': apply Q or Q**H from the Right.
4040
*> \endverbatim
4141
*>
4242
*> \param[in] TRANS
4343
*> \verbatim
4444
*> TRANS is CHARACTER*1
4545
*> = 'N': No transpose, apply Q;
46-
*> = 'T': Transpose, apply Q**T.
46+
*> = 'C': Transpose, apply Q**H.
4747
*> \endverbatim
4848
*>
4949
*> \param[in] M
5050
*> \verbatim
5151
*> M is INTEGER
52-
*> The number of rows of the matrix A. M >=0.
52+
*> The number of rows of the matrix C. M >=0.
5353
*> \endverbatim
5454
*>
5555
*> \param[in] N
@@ -88,12 +88,14 @@
8888
*>
8989
*> \endverbatim
9090
*>
91-
*> \param[in,out] A
91+
*> \param[in] A
9292
*> \verbatim
93-
*> A is COMPLEX array, dimension (LDA,K)
93+
*> A is COMPLEX array, dimension
94+
*> (LDA,M) if SIDE = 'L',
95+
*> (LDA,N) if SIDE = 'R'
9496
*> The i-th row must contain the vector which defines the blocked
9597
*> elementary reflector H(i), for i = 1,2,...,k, as returned by
96-
*> DLASWLQ in the first k rows of its array argument A.
98+
*> CLASWLQ in the first k rows of its array argument A.
9799
*> \endverbatim
98100
*>
99101
*> \param[in] LDA
@@ -123,7 +125,7 @@
123125
*> \verbatim
124126
*> C is COMPLEX array, dimension (LDC,N)
125127
*> On entry, the M-by-N matrix C.
126-
*> On exit, C is overwritten by Q*C or Q**T*C or C*Q**T or C*Q.
128+
*> On exit, C is overwritten by Q*C or Q**H*C or C*Q**H or C*Q.
127129
*> \endverbatim
128130
*>
129131
*> \param[in] LDC
@@ -219,7 +221,7 @@ SUBROUTINE CLAMSWLQ( SIDE, TRANS, M, N, K, MB, NB, A, LDA, T,
219221
* ..
220222
* .. Local Scalars ..
221223
LOGICAL LEFT, RIGHT, TRAN, NOTRAN, LQUERY
222-
INTEGER I, II, KK, LW , CTR
224+
INTEGER I, II, KK, LW, CTR
223225
* ..
224226
* .. External Functions ..
225227
LOGICAL LSAME

SRC/clamtsqr.f

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*>
2424
*> SIDE = 'L' SIDE = 'R'
2525
*> TRANS = 'N': Q * C C * Q
26-
*> TRANS = 'C': Q**C * C C * Q**C
26+
*> TRANS = 'C': Q**H * C C * Q**H
2727
*> where Q is a real orthogonal matrix defined as the product
2828
*> of blocked elementary reflectors computed by tall skinny
2929
*> QR factorization (CLATSQR)
@@ -35,15 +35,15 @@
3535
*> \param[in] SIDE
3636
*> \verbatim
3737
*> SIDE is CHARACTER*1
38-
*> = 'L': apply Q or Q**T from the Left;
39-
*> = 'R': apply Q or Q**T from the Right.
38+
*> = 'L': apply Q or Q**H from the Left;
39+
*> = 'R': apply Q or Q**H from the Right.
4040
*> \endverbatim
4141
*>
4242
*> \param[in] TRANS
4343
*> \verbatim
4444
*> TRANS is CHARACTER*1
4545
*> = 'N': No transpose, apply Q;
46-
*> = 'C': Conjugate Transpose, apply Q**C.
46+
*> = 'C': Conjugate Transpose, apply Q**H.
4747
*> \endverbatim
4848
*>
4949
*> \param[in] M
@@ -81,7 +81,7 @@
8181
*> N >= NB >= 1.
8282
*> \endverbatim
8383
*>
84-
*> \param[in,out] A
84+
*> \param[in] A
8585
*> \verbatim
8686
*> A is COMPLEX array, dimension (LDA,K)
8787
*> The i-th column must contain the vector which defines the
@@ -117,7 +117,7 @@
117117
*> \verbatim
118118
*> C is COMPLEX array, dimension (LDC,N)
119119
*> On entry, the M-by-N matrix C.
120-
*> On exit, C is overwritten by Q*C or Q**T*C or C*Q**T or C*Q.
120+
*> On exit, C is overwritten by Q*C or Q**H*C or C*Q**H or C*Q.
121121
*> \endverbatim
122122
*>
123123
*> \param[in] LDC

SRC/claswlq.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*> \verbatim
5656
*> A is COMPLEX array, dimension (LDA,N)
5757
*> On entry, the M-by-N matrix A.
58-
*> On exit, the elements on and bleow the diagonal
58+
*> On exit, the elements on and below the diagonal
5959
*> of the array contain the N-by-N lower triangular matrix L;
6060
*> the elements above the diagonal represent Q by the rows
6161
*> of blocked V (see Further Details).

SRC/csytrs_aa.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
*> of the matrix B. NRHS >= 0.
6767
*> \endverbatim
6868
*>
69-
*> \param[in,out] A
69+
*> \param[in] A
7070
*> \verbatim
7171
*> A is REAL array, dimension (LDA,N)
7272
*> Details of factors computed by CSYTRF_AA.

0 commit comments

Comments
 (0)