Skip to content

Commit 33e9219

Browse files
committed
made transpose lazy
1 parent 5a274cd commit 33e9219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class BlockMatrix(
238238
val transposedBlocks = blocks.map { case ((blockRowIndex, blockColIndex), mat) =>
239239
((blockColIndex, blockRowIndex), mat.transpose)
240240
}
241-
new BlockMatrix(transposedBlocks, colsPerBlock, rowsPerBlock, numCols(), numRows())
241+
new BlockMatrix(transposedBlocks, colsPerBlock, rowsPerBlock, nCols, nRows)
242242
}
243243

244244
/** Collects data and assembles a local dense breeze matrix (for test only). */

0 commit comments

Comments
 (0)