summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-03-21 15:05:51 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-03-26 20:41:48 -0600
commita5aae2946729df3d59132edc94522919542454bd (patch)
tree9d9bdc75f4a11d9dd90a092bc03c2ce94912c3d2 /numpy/polynomial/polyutils.py
parent1eb81b7beaf571bdd534cfeec046b79b1d188714 (diff)
downloadnumpy-a5aae2946729df3d59132edc94522919542454bd.tar.gz
DOC: Cleanup polyutils.py module documentation.
Also note that PolyBase is no longer to be used.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
-rw-r--r--numpy/polynomial/polyutils.py57
1 files changed, 39 insertions, 18 deletions
diff --git a/numpy/polynomial/polyutils.py b/numpy/polynomial/polyutils.py
index 63743bb40..99f508521 100644
--- a/numpy/polynomial/polyutils.py
+++ b/numpy/polynomial/polyutils.py
@@ -1,41 +1,53 @@
"""
-Utililty objects for the polynomial modules.
+Utililty classes and functions for the polynomial modules.
This module provides: error and warning objects; a polynomial base class;
and some routines used in both the `polynomial` and `chebyshev` modules.
Error objects
-------------
-- `PolyError` -- base class for this sub-package's errors.
-- `PolyDomainError` -- raised when domains are "mismatched."
+
+.. autosummary::
+ :toctree: generated/
+
+ PolyError base class for this sub-package's errors.
+ PolyDomainError raised when domains are mismatched.
Warning objects
---------------
-- `RankWarning` -- raised by a least-squares fit when a rank-deficient
- matrix is encountered.
+
+.. autosummary::
+ :toctree: generated/
+
+ RankWarning raised in least-squares fit for rank-deficient matrix.
Base class
----------
-- `PolyBase` -- The base class for the `Polynomial` and `Chebyshev`
- classes.
+
+.. autosummary::
+ :toctree: generated/
+
+ PolyBase Obsolete base class for the polynomial classes. Do not use.
Functions
---------
-- `as_series` -- turns a list of array_likes into 1-D arrays of common
- type.
-- `trimseq` -- removes trailing zeros.
-- `trimcoef` -- removes trailing coefficients that are less than a given
- magnitude (thereby removing the corresponding terms).
-- `getdomain` -- returns a domain appropriate for a given set of abscissae.
-- `mapdomain` -- maps points between domains.
-- `mapparms` -- parameters of the linear map between domains.
+
+.. autosummary::
+ :toctree: generated/
+
+ as_series convert list of array_likes into 1-D arrays of common type.
+ trimseq remove trailing zeros.
+ trimcoef remove small trailing coefficients.
+ getdomain return the domain appropriate for a given set of abscissae.
+ mapdomain maps points between domains.
+ mapparms parameters of the linear map between domains.
"""
from __future__ import division, absolute_import, print_function
-__all__ = ['RankWarning', 'PolyError', 'PolyDomainError', 'PolyBase',
- 'as_series', 'trimseq', 'trimcoef', 'getdomain', 'mapdomain',
- 'mapparms']
+__all__ = ['RankWarning', 'PolyError', 'PolyDomainError', 'as_series',
+ 'trimseq', 'trimcoef', 'getdomain', 'mapdomain', 'mapparms',
+ 'PolyBase']
import warnings
import numpy as np
@@ -67,6 +79,15 @@ class PolyDomainError(PolyError) :
#
class PolyBase(object) :
+ """
+ Base class for all polynomial types.
+
+ Deprecated in numpy 1.9.0, use the abstract
+ ABCPolyBase class instead. Note that the latter
+ reguires a number of virtual functions to be
+ implemented.
+
+ """
pass
#