diff options
author | argriffing <argriffing@users.noreply.github.com> | 2015-06-19 21:47:25 -0400 |
---|---|---|
committer | argriffing <argriffing@users.noreply.github.com> | 2015-06-19 21:47:25 -0400 |
commit | 0514d31299318bfa4c87abbfea6424eebaeec188 (patch) | |
tree | e79a1dc223d7060bedfac97d300d73bd368275a6 /numpy | |
parent | a9695eec20c029d8d64f0e7162f7947b6c3589a5 (diff) | |
parent | 49427504787e46bc394305901997d629f039fd19 (diff) | |
download | numpy-0514d31299318bfa4c87abbfea6424eebaeec188.tar.gz |
Merge pull request #5985 from ajdawson/lgauss-sym
ENH: Take advantage of symmetry in leggauss.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/polynomial/legendre.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/polynomial/legendre.py b/numpy/polynomial/legendre.py index d2de28269..e97de703f 100644 --- a/numpy/polynomial/legendre.py +++ b/numpy/polynomial/legendre.py @@ -1711,7 +1711,7 @@ def leggauss(deg): # matrix is symmetric in this case in order to obtain better zeros. c = np.array([0]*deg + [1]) m = legcompanion(c) - x = la.eigvals(m) + x = la.eigvalsh(m) x.sort() # improve roots by one application of Newton |