diff options
author | Pauli Virtanen <pav@iki.fi> | 2008-12-13 16:18:04 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2008-12-13 16:18:04 +0000 |
commit | f947ff3bf90038bc0b37bc9b6a95138a0cf5e47a (patch) | |
tree | 21b7e635180e6e79688a2740535a1ebc01259e6f /numpy/ma/extras.py | |
parent | 57c9ad3baa68a11aa8cfd272e4ccbb9002526cf1 (diff) | |
download | numpy-f947ff3bf90038bc0b37bc9b6a95138a0cf5e47a.tar.gz |
Get lstsq and eigvals from numpy.linalg, not from numpy.dual. Addresses Scipy ticket #800
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r-- | numpy/ma/extras.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index 843dfd431..cf80180e4 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -40,7 +40,7 @@ import numpy as np from numpy import ndarray, array as nxarray import numpy.core.umath as umath from numpy.lib.index_tricks import AxisConcatenator -from numpy.lib.polynomial import _lstsq +from numpy.linalg import lstsq #............................................................................... def issequence(seq): @@ -1033,7 +1033,7 @@ def polyfit(x, y, deg, rcond=None, full=False): x = x / scale # solve least squares equation for powers of x v = vander(x, order) - c, resids, rank, s = _lstsq(v, y.filled(0), rcond) + c, resids, rank, s = lstsq(v, y.filled(0), rcond) # warn on rank reduction, which indicates an ill conditioned matrix if rank != order and not full: warnings.warn("Polyfit may be poorly conditioned", np.RankWarning) |