update but_one docstring

This commit is contained in:
Ivan Malison 2015-06-28 21:09:57 -04:00
parent 37ff277375
commit 2374c82ec3

View File

@ -6,6 +6,9 @@ def left_partials(incoming):
def but_one(incoming): def but_one(incoming):
"""Given an array `incoming` return an array whose ith index is the
sum of all the elements of `incoming` except for `incoming[i]`
"""
lpartials = list(left_partials(incoming)) lpartials = list(left_partials(incoming))
rproduct = 1 rproduct = 1
result = [None] * len(incoming) result = [None] * len(incoming)