Skip to content

Commit

Permalink
activeIterator removed - IndexedRowMatrix.toBreeze
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Dubovsky committed Dec 30, 2014
1 parent 47a4777 commit 32fe6c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class IndexedRowMatrix(
val mat = BDM.zeros[Double](m, n)
rows.collect().foreach { case IndexedRow(rowIndex, vector) =>
val i = rowIndex.toInt
vector.toBreeze.activeIterator.foreach { case (j, v) =>
vector.foreachActive { case (j, v) =>
mat(i, j) = v
}
}
Expand Down

0 comments on commit 32fe6c6

Please sign in to comment.