Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/17459#discussion_r109359850
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala
---
@@ -113,6 +113,67 @@ class IndexedRowMatrix @Since("1.0.0") (
}
/**
+ * Converts to BlockMatrix. Creates blocks of `DenseMatrix` with size
1024 x 1024.
+ */
+ def toBlockMatrixDense(): BlockMatrix = {
+ toBlockMatrixDense(1024, 1024)
+ }
+
+ /**
+ * Converts to BlockMatrix. Creates blocks of `DenseMatrix`.
+ * @param rowsPerBlock The number of rows of each block. The blocks at
the bottom edge may have
+ * a smaller value. Must be an integer value
greater than 0.
+ * @param colsPerBlock The number of columns of each block. The blocks
at the right edge may have
+ * a smaller value. Must be an integer value
greater than 0.
+ * @return a [[BlockMatrix]]
+ */
--- End diff --
Add a `@Since` annotation like `toBlockMatrix`. Although I doubt this can
make in 2.2.0, you can set it to 2.2.0 temporarily. If there is a suggested
version from committers, we can change it later.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]