Skip to content

Commit

Permalink
[SPARK-8563][MLlib] Fixed a bug so that IndexedRowMatrix.computeSVD()…
Browse files Browse the repository at this point in the history
….U.numCols = k
  • Loading branch information
lee19 committed Jun 23, 2015
1 parent f0dcbe8 commit 8373424
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, nRows, nCols)
new IndexedRowMatrix(indexedRows, svd.U.numRows(), svd.U.numCols())
} else {
null
}
Expand Down

0 comments on commit 8373424

Please sign in to comment.