summaryrefslogtreecommitdiff
path: root/numpy/__init__.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2009-11-14 22:30:39 +0000
committerCharles Harris <charlesr.harris@gmail.com>2009-11-14 22:30:39 +0000
commit9211df98609ea0348ad51cab611387b8e898a974 (patch)
treec87abd831f1585ed222dbd4552bf4df0dab3d702 /numpy/__init__.py
parentb8b7c9602346fe21110549d133c17a6500d4986f (diff)
downloadnumpy-9211df98609ea0348ad51cab611387b8e898a974.tar.gz
Add support for chebyshev series and polynomials.
New modules chebyshev and polynomial are added. The new polynomial module is not compatible with the current polynomial support in numpy, but is much like the new chebyshev module. The most noticeable difference to most will be that coefficients are specified from low to high power, that the low level functions do *not* accept the Chebyshev and Polynomial classes as arguements, and that the Chebyshev and Polynomial classes include a domain. Mapping between domains is a linear substitution and the two classes can be converted one to the other, allowing, for instance, a Chebyshev series in one domain to be expanded as a polynomial in another domain. The new modules are not automatically imported into the numpy namespace, they must be explicitly brought in with a "import numpy.polynomial" statement.
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r--numpy/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index 4127fa054..3f6695a8c 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -58,6 +58,8 @@ linalg
Core Linear Algebra Tools
fft
Core FFT routines
+polynomial
+ Polynomial tools
testing
Numpy testing tools
f2py
@@ -143,6 +145,7 @@ else:
from lib import *
import linalg
import fft
+ import polynomial
import random
import ctypeslib
import ma