diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-10-16 17:44:09 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-10-16 17:44:09 +0000 |
commit | ff1c6632c9313027a58f13797dc58127bcaededf (patch) | |
tree | ff8dcbbe7eced2968a02a83a498c25e340d9c852 /numpy/lib/polynomial.py | |
parent | 533fba23cb556658fa8cc465c3385426ec3a8521 (diff) | |
download | numpy-ff1c6632c9313027a58f13797dc58127bcaededf.tar.gz |
Fix finfo eps and huge to be array scalars of the appropriate type. And use finfo interface instead of MachAr.
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 58da84edd..a1de6389f 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -11,14 +11,14 @@ import warnings import numpy.core.numeric as NX from numpy.core import isscalar, abs -from numpy.lib.machar import MachAr +from numpy.lib.getlimits import finfo from numpy.lib.twodim_base import diag, vander from numpy.lib.shape_base import hstack, atleast_1d from numpy.lib.function_base import trim_zeros, sort_complex eigvals = None lstsq = None -_single_eps = MachAr(NX.single).eps -_double_eps = MachAr(NX.double).eps +_single_eps = finfo(NX.single).eps +_double_eps = finfo(NX.double).eps class RankWarning(UserWarning): """Issued by polyfit when Vandermonde matrix is rank deficient. |