8000 Merge pull request #7746 from stuartarchibald/wip/np_la_lstsq_doc_fix · numpy/numpy@0b3a7d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b3a7d9

Browse files
authored
Merge pull request #7746 from stuartarchibald/wip/np_la_lstsq_doc_fix
DOC: Clarify the effect of rcond in numpy.linalg.lstsq.
2 parents 330d023 + 3cb6927 commit 0b3a7d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

numpy/linalg/linalg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,8 +1804,9 @@ def lstsq(a, b, rcond=-1):
18041804
of `b`.
18051805
rcond : float, optional
18061806
Cut-off ratio for small singular values of `a`.
1807-
Singular values are set to zero if they are smaller than `rcond`
1808-
times the largest singular value of `a`.
1807+
For the purposes of rank determination, singular values are treated
1808+
as zero if they are smaller than `rcond` times the largest singular
1809+
value of `a`.
18091810
18101811
Returns
18111812
-------

0 commit comments

Comments
 (0)
0