Skip to content

Commit

Permalink
Merge pull request #17 from geanders/master
Browse files Browse the repository at this point in the history
Clarify dependency
  • Loading branch information
joelgrus committed Dec 23, 2015
2 parents 25d57d4 + b5bc48a commit b6719c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/linear_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def vector_sum(vectors):
def scalar_multiply(c, v):
return [c * v_i for v_i in v]

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

0 comments on commit b6719c8

Please sign in to comment.