Skip to content

Commit

Permalink
Fixed review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinod K C committed Sep 16, 2015
1 parent b8e1e6e commit b77e420
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/pyspark/mllib/linalg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ def __init__(self, ar):
if ar.dtype != np.float64:
ar = ar.astype(np.float64)
self.array = ar
self.values = ar

@staticmethod
def parse(s):
Expand Down Expand Up @@ -392,6 +391,10 @@ def squared_distance(self, other):
def toArray(self):
return self.array

@property
def values(self):
return self.array

def __getitem__(self, item):
return self.array[item]

Expand Down

0 comments on commit b77e420

Please sign in to comment.