summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polytemplate.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-06-07 03:43:19 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-06-07 03:43:19 +0000
commit0db76715c5f019222db48cc28a6a49d086a8a939 (patch)
treefeab8bcb1f79bbc31a3fd43c38466cf6874bffd5 /numpy/polynomial/polytemplate.py
parent66e3231baaf2181abeafc4d37b8ad5272728ff64 (diff)
downloadnumpy-0db76715c5f019222db48cc28a6a49d086a8a939.tar.gz
CHG: Rename reduce method in polytemplate to cutdeg. Reduce is just too
much like a ufunc and a bit vague.
Diffstat (limited to 'numpy/polynomial/polytemplate.py')
-rw-r--r--numpy/polynomial/polytemplate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/polynomial/polytemplate.py b/numpy/polynomial/polytemplate.py
index 2a57a517f..1f17593dd 100644
--- a/numpy/polynomial/polytemplate.py
+++ b/numpy/polynomial/polytemplate.py
@@ -313,8 +313,8 @@ class $name(pu.PolyBase) :
"""
return len(self) - 1
- def reduce(self, deg) :
- """Reduce the degree of the series.
+ def cutdeg(self, deg) :
+ """Truncate series to the given degree.
Reduce the degree of the $name series to `deg` by discarding the
high order terms. If `deg` is greater than the current degree a