[Numpy-svn] r8290 - trunk/numpy/polynomial

numpy-svn@scip... numpy-svn@scip...
Sun Mar 7 19:33:44 CST 2010


Author: charris
Date: 2010-03-07 19:33:43 -0600 (Sun, 07 Mar 2010)
New Revision: 8290

Modified:
   trunk/numpy/polynomial/polytemplate.py
Log:
ENH: Make Chebyshev and Polynomial classes dominate ndarrays.

Modified: trunk/numpy/polynomial/polytemplate.py
===================================================================
--- trunk/numpy/polynomial/polytemplate.py	2010-03-07 00:00:08 UTC (rev 8289)
+++ trunk/numpy/polynomial/polytemplate.py	2010-03-08 01:33:43 UTC (rev 8290)
@@ -63,7 +63,10 @@
     """
     # Limit runaway size. T_n^m has degree n*2^m
     maxpower = 16
+    # Default domain
     domain = np.array($domain)
+    # Don't let participate in array operations. Value doesn't matter.
+    __array_priority__ = 0
 
     def __init__(self, coef, domain=$domain) :
         [coef, domain] = pu.as_series([coef, domain], trim=False)



More information about the Numpy-svn mailing list