Skip to content

Commit 63c7165

Browse files
author
DB Tsai
committed
typo
1 parent 0c3637f commit 63c7165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/test/scala/org/apache/spark/mllib/linalg/VectorsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class VectorsSuite extends FunSuite {
218218

219219
assert(Vectors.norm(dv, 3.7) ~== math.pow(dv.toArray.foldLeft(0.0)((a, v) =>
220220
a + math.pow(math.abs(v), 3.7)), 1.0 / 3.7) relTol 1E-8)
221-
assert(Vectors.norm(sv, 3.7) ~== math.pow(dv.toArray.foldLeft(0.0)((a, v) =>
221+
assert(Vectors.norm(sv, 3.7) ~== math.pow(sv.toArray.foldLeft(0.0)((a, v) =>
222222
a + math.pow(math.abs(v), 3.7)), 1.0 / 3.7) relTol 1E-8)
223223
}
224224
}

0 commit comments

Comments
 (0)