Skip to content

Commit b6719c8

Browse files
committed
Merge pull request joelgrus#17 from geanders/master
Clarify dependency
2 parents 25d57d4 + b5bc48a commit b6719c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/linear_algebra.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def vector_sum(vectors):
2424
def scalar_multiply(c, v):
2525
return [c * v_i for v_i in v]
2626

27+
# this isn't right if you don't from __future__ import division
2728
def vector_mean(vectors):
2829
"""compute the vector whose i-th element is the mean of the
2930
i-th elements of the input vectors"""

0 commit comments

Comments
 (0)