diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2006-10-16 17:55:30 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2006-10-16 17:55:30 +0000 |
commit | 15155cf5d7a0f9afc1a9cebb9203d80fddcb6c92 (patch) | |
tree | 45ada1316f8990c6a17ad076300ce7a87651aaa6 /numpy/lib/polynomial.py | |
parent | ff1c6632c9313027a58f13797dc58127bcaededf (diff) | |
download | numpy-15155cf5d7a0f9afc1a9cebb9203d80fddcb6c92.tar.gz |
Fix qr decomposition. The dimensions m,n were taken from the fortran ordered array
instead of from the numpy ordered array and consequently were reversed.
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index a1de6389f..bcb95ecf9 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -194,8 +194,8 @@ def polyfit(x, y, deg, rcond=None, full=False): Returns - full == False -- coeficients - full == True -- coeficients, residuals, rank, singular values. + full == False -- coefficients + full == True -- coefficients, residuals, rank, singular values, rcond. Warns @@ -309,7 +309,7 @@ def polyfit(x, y, deg, rcond=None, full=False): c /= vander([scale], order)[0] if full : - return c, resids, rank, s + return c, resids, rank, s, rcond else : return c |