diff options
author | Stephan Hoyer <shoyer@google.com> | 2018-10-23 07:53:58 -0700 |
---|---|---|
committer | Stephan Hoyer <shoyer@google.com> | 2018-10-23 07:57:40 -0700 |
commit | 8bab96faf2cb740536712e49e92e133626087018 (patch) | |
tree | b16d0f4d121d588ca3219b95d3c4304059cddacd /numpy/lib/polynomial.py | |
parent | 42a5bddc937ef02175d52a3ab3b3da6229e1ecb2 (diff) | |
download | numpy-8bab96faf2cb740536712e49e92e133626087018.tar.gz |
MAINT: set preferred __module__ for numpy functions
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index 09079db9d..c2702f0a7 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -8,19 +8,24 @@ __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', 'polyfit', 'RankWarning'] +import functools import re import warnings import numpy.core.numeric as NX from numpy.core import (isscalar, abs, finfo, atleast_1d, hstack, dot, array, ones) -from numpy.core.overrides import array_function_dispatch +from numpy.core import overrides from numpy.lib.twodim_base import diag, vander from numpy.lib.function_base import trim_zeros from numpy.lib.type_check import iscomplex, real, imag, mintypecode from numpy.linalg import eigvals, lstsq, inv +array_function_dispatch = functools.partial( + overrides.array_function_dispatch, module='numpy') + + class RankWarning(UserWarning): """ Issued by `polyfit` when the Vandermonde matrix is rank deficient. |