Skip to content

Commit

Permalink
[SPARK-8563] [MLlib] Used nRows instead of numRows() to reduce a burden.
Browse files Browse the repository at this point in the history
  • Loading branch information
lee19 committed Jun 30, 2015
1 parent 4b9803b commit c1812a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class IndexedRowMatrix(
val indexedRows = indices.zip(svd.U.rows).map { case (i, v) =>
IndexedRow(i, v)
}
new IndexedRowMatrix(indexedRows, svd.U.numRows(), svd.U.numCols().toInt)
new IndexedRowMatrix(indexedRows, nRows, svd.U.numCols().toInt)
} else {
null
}
Expand Down

0 comments on commit c1812a0

Please sign in to comment.