Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

DOC: more reproducible example in linalg.solve docstring #2693

Merged
merged 3 commits into from

4 participants

@glyg

Fixes issue 2692

@njsmith
Owner

But this change is not really correct... it's missing a call to np.abs at a minimum. Better would be to use np.allclose.

@dwf
dwf commented

This looks ready to merge to me.

@charris charris merged commit 75b8119 into from
@charris
Owner

Looks good to me also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 22, 2012
  1. @glyg

    Correct `linalg.solve` doc string

    glyg authored
    Fixes issue 2692
  2. @glyg
  3. @glyg

    Fixed parenthesis typo

    glyg authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  numpy/linalg/linalg.py
View
2  numpy/linalg/linalg.py
@@ -299,7 +299,7 @@ def solve(a, b):
Check that the solution is correct:
- >>> (np.dot(a, x) == b).all()
+ >>> np.allclose(np.dot(a, x), b)
True
"""
Something went wrong with that request. Please try again.