Skip to content

Commit 3ed4768

Browse files
author
GYT
committed
Add notes to *GETSLS about how only exact rank-deficiency is checked
1 parent ba91e7e commit 3ed4768

File tree

4 files changed

+44
-8
lines changed

4 files changed

+44
-8
lines changed

SRC/cgetsls.f

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@
2222
*>
2323
*> CGETSLS solves overdetermined or underdetermined complex linear systems
2424
*> involving an M-by-N matrix A, using a tall skinny QR or short wide LQ
25-
*> factorization of A. It is assumed that A has full rank.
25+
*> factorization of A.
2626
*>
27+
*> It is assumed that A has full rank, and only a rudimentary protection
28+
*> against rank-deficient matrices is provided. This subroutine only detects
29+
*> exact rank-deficiency, where a diagonal element of the triangular factor
30+
*> of A is exactly zero.
31+
*>
32+
*> It is conceivable for one (or more) of the diagonal elements of the triangular
33+
*> factor of A to be subnormally tiny numbers without this subroutine signalling
34+
*> an error. The solutions computed for such almost-rank-deficient matrices may
35+
*> be less accurate due to a loss of numerical precision.
2736
*>
2837
*>
2938
*> The following options are provided:
@@ -141,7 +150,7 @@
141150
*> = 0: successful exit
142151
*> < 0: if INFO = -i, the i-th argument had an illegal value
143152
*> > 0: if INFO = i, the i-th diagonal element of the
144-
*> triangular factor of A is zero, so that A does not have
153+
*> triangular factor of A is exactly zero, so that A does not have
145154
*> full rank; the least squares solution could not be
146155
*> computed.
147156
*> \endverbatim

SRC/dgetsls.f

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@
2222
*>
2323
*> DGETSLS solves overdetermined or underdetermined real linear systems
2424
*> involving an M-by-N matrix A, using a tall skinny QR or short wide LQ
25-
*> factorization of A. It is assumed that A has full rank.
25+
*> factorization of A.
2626
*>
27+
*> It is assumed that A has full rank, and only a rudimentary protection
28+
*> against rank-deficient matrices is provided. This subroutine only detects
29+
*> exact rank-deficiency, where a diagonal element of the triangular factor
30+
*> of A is exactly zero.
31+
*>
32+
*> It is conceivable for one (or more) of the diagonal elements of the triangular
33+
*> factor of A to be subnormally tiny numbers without this subroutine signalling
34+
*> an error. The solutions computed for such almost-rank-deficient matrices may
35+
*> be less accurate due to a loss of numerical precision.
2736
*>
2837
*>
2938
*> The following options are provided:
@@ -141,7 +150,7 @@
141150
*> = 0: successful exit
142151
*> < 0: if INFO = -i, the i-th argument had an illegal value
143152
*> > 0: if INFO = i, the i-th diagonal element of the
144-
*> triangular factor of A is zero, so that A does not have
153+
*> triangular factor of A is exactly zero, so that A does not have
145154
*> full rank; the least squares solution could not be
146155
*> computed.
147156
*> \endverbatim

SRC/sgetsls.f

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@
2222
*>
2323
*> SGETSLS solves overdetermined or underdetermined real linear systems
2424
*> involving an M-by-N matrix A, using a tall skinny QR or short wide LQ
25-
*> factorization of A. It is assumed that A has full rank.
25+
*> factorization of A.
2626
*>
27+
*> It is assumed that A has full rank, and only a rudimentary protection
28+
*> against rank-deficient matrices is provided. This subroutine only detects
29+
*> exact rank-deficiency, where a diagonal element of the triangular factor
30+
*> of A is exactly zero.
31+
*>
32+
*> It is conceivable for one (or more) of the diagonal elements of the triangular
33+
*> factor of A to be subnormally tiny numbers without this subroutine signalling
34+
*> an error. The solutions computed for such almost-rank-deficient matrices may
35+
*> be less accurate due to a loss of numerical precision.
2736
*>
2837
*>
2938
*> The following options are provided:
@@ -141,7 +150,7 @@
141150
*> = 0: successful exit
142151
*> < 0: if INFO = -i, the i-th argument had an illegal value
143152
*> > 0: if INFO = i, the i-th diagonal element of the
144-
*> triangular factor of A is zero, so that A does not have
153+
*> triangular factor of A is exactly zero, so that A does not have
145154
*> full rank; the least squares solution could not be
146155
*> computed.
147156
*> \endverbatim

SRC/zgetsls.f

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@
2222
*>
2323
*> ZGETSLS solves overdetermined or underdetermined complex linear systems
2424
*> involving an M-by-N matrix A, using a tall skinny QR or short wide LQ
25-
*> factorization of A. It is assumed that A has full rank.
25+
*> factorization of A.
2626
*>
27+
*> It is assumed that A has full rank, and only a rudimentary protection
28+
*> against rank-deficient matrices is provided. This subroutine only detects
29+
*> exact rank-deficiency, where a diagonal element of the triangular factor
30+
*> of A is exactly zero.
31+
*>
32+
*> It is conceivable for one (or more) of the diagonal elements of the triangular
33+
*> factor of A to be subnormally tiny numbers without this subroutine signalling
34+
*> an error. The solutions computed for such almost-rank-deficient matrices may
35+
*> be less accurate due to a loss of numerical precision.
2736
*>
2837
*>
2938
*> The following options are provided:
@@ -141,7 +150,7 @@
141150
*> = 0: successful exit
142151
*> < 0: if INFO = -i, the i-th argument had an illegal value
143152
*> > 0: if INFO = i, the i-th diagonal element of the
144-
*> triangular factor of A is zero, so that A does not have
153+
*> triangular factor of A is exactly zero, so that A does not have
145154
*> full rank; the least squares solution could not be
146155
*> computed.
147156
*> \endverbatim

0 commit comments

Comments
 (0)