Skip to content

Commit

Permalink
ENH: Don't let Chebyshev and Polynomial participate in array operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
charris committed Mar 8, 2010
1 parent 9433d0c commit 0999689
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions numpy/polynomial/polytemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ class $name(pu.PolyBase) :
"""
# 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)
Expand Down

0 comments on commit 0999689

Please sign in to comment.