Skip to content

Commit

Permalink
DOC: Fix typos about missing np. namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ilayn authored Jan 17, 2018
1 parent 0ff7023 commit 746aa6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scipy/linalg/decomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1088,11 +1088,11 @@ def eigh_tridiagonal(d, e, eigvals_only=False, select='a', select_range=None,
Examples
--------
>>> from scipy.linalg import eigh_tridiagonal
>>> d = 3*ones(4)
>>> e = -1*ones(3)
>>> d = 3*np.ones(4)
>>> e = -1*np.ones(3)
>>> w, v = eigh_tridiagonal(d, e)
>>> A = np.diag(d) + np.diag(e, k=1) + np.diag(e, k=-1)
>>> allclose(A @ v - v @ np.diag(w)), np.zeros((4, 4)))
>>> np.allclose(A @ v - v @ np.diag(w), np.zeros((4, 4)))
True
"""
d = _asarray_validated(d, check_finite=check_finite)
Expand Down

0 comments on commit 746aa6a

Please sign in to comment.