There was an error while loading. Please reload this page.
2 parents 25d57d4 + b5bc48a commit b6719c8Copy full SHA for b6719c8
code/linear_algebra.py
@@ -24,6 +24,7 @@ def vector_sum(vectors):
24
def scalar_multiply(c, v):
25
return [c * v_i for v_i in v]
26
27
+# this isn't right if you don't from __future__ import division
28
def vector_mean(vectors):
29
"""compute the vector whose i-th element is the mean of the
30
i-th elements of the input vectors"""
0 commit comments