summaryrefslogtreecommitdiff
path: root/numpy/polynomial/chebyshev.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-03-17 13:29:20 -0600
committerGitHub <noreply@github.com>2019-03-17 13:29:20 -0600
commit1a92b74a5387f676dd389ffd91054e8c2733f413 (patch)
tree6314c451db19663cf921c097e5748f6248d7db93 /numpy/polynomial/chebyshev.py
parent06da877ceae914a875bd1a55cd8e271332358803 (diff)
parentddbc31c2d71285f426dc16fab8ac2e00ffe6c1f8 (diff)
downloadnumpy-1a92b74a5387f676dd389ffd91054e8c2733f413.tar.gz
Merge pull request #13146 from eric-wieser/poly-pow
MAINT: Unify polynomial power functions
Diffstat (limited to 'numpy/polynomial/chebyshev.py')
-rw-r--r--numpy/polynomial/chebyshev.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py
index 475582fdc..836f47363 100644
--- a/numpy/polynomial/chebyshev.py
+++ b/numpy/polynomial/chebyshev.py
@@ -826,6 +826,9 @@ def chebpow(c, pow, maxpower=16):
array([15.5, 22. , 16. , ..., 12.5, 12. , 8. ])
"""
+ # note: this is more efficient than `pu._pow(chebmul, c1, c2)`, as it
+ # avoids converting between z and c series repeatedly
+
# c is a trimmed copy
[c] = pu.as_series([c])
power = int(pow)