Skip to content

Commit 47a4777

Browse files
author
Jakub Dubovsky
committed
activeIterator removed in RowMatrix.toBreeze
1 parent 90a7d98 commit 47a4777

File tree

1 file changed

+2
-2
lines changed
  • mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed

1 file changed

+2
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ class RowMatrix(
588588
val n = numCols().toInt
589589
val mat = BDM.zeros[Double](m, n)
590590
var i = 0
591-
rows.collect().foreach { v =>
592-
v.toBreeze.activeIterator.foreach { case (j, v) =>
591+
rows.collect().foreach { vector =>
592+
vector.foreachActive { case (j, v) =>
593593
mat(i, j) = v
594594
}
595595
i += 1

0 commit comments

Comments
 (0)