Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Fix documentation bugs in lstsq #14852

Merged
merged 1 commit into from
Nov 10, 2021
Merged

DOC: Fix documentation bugs in lstsq #14852

merged 1 commit into from
Nov 10, 2021

Conversation

stephenbeckr
Copy link
Contributor

What does this implement/fix?

Found errors in documentation. Documentation was incorrectly copied from numpy.linalg?

What does this implement/fix?

  1. Remove reference to rcond when it should reference just cond (rcond is the term used in numpy)
  2. Remove absolute values in the "The condition number is..." since singular values are always non-negative
  3. Update the description of the size of x to match the numpy documentation. x is not the same shape as b unless M=N.

Additional information

This is my first pull request, please excuse me if I used the wrong branch or other mistake.

Copy link
Member

@ilayn ilayn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephenbeckr Thanks a lot! All good with one minor comment.

scipy/linalg/basic.py Outdated Show resolved Hide resolved
@ilayn ilayn added the Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org label Oct 13, 2021
Documentation was incorrectly copied from numpy.linalg?

Suggested changes:
1. References `rcond` when it should reference just `cond` (`rcond` is the term used in numpy)
2. Remove absolute values in the "The condition number is..." since singular values are always non-negative
3. Update the description of the size of `x` to match the numpy documentation.  `x` is *not* the same shape as `b` unless M=N.
@rgommers rgommers added this to the 1.8.0 milestone Nov 10, 2021
@rgommers rgommers merged commit b2a887b into scipy:master Nov 10, 2021
@rgommers
Copy link
Member

Merged, thanks @stephenbeckr and @ilayn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org scipy.linalg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants