GitHub user WeichenXu123 opened a pull request: https://github.com/apache/spark/pull/15716
[SPARK-18201] add toDense and toSparse into Matrix trait, like Vector design ## What changes were proposed in this pull request? add toDense and toSparse into Matrix trait, like Vector design so that when we have a Matrix object `matrix: Matrix`, maybe dense or sparse, we can call `matrix.toDense` to get DenseMatrix and call `matrix.toSparse` to get SparseMatrix ## How was this patch tested? N/A You can merge this pull request into a Git repository by running: $ git pull https://github.com/WeichenXu123/spark add_toDense_toSparse_into_matrix_base Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15716.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #15716 ---- commit 102fa83866ef03f75c6198cb9a026822af90e1f2 Author: WeichenXu <weichenxu...@outlook.com> Date: 2016-11-01T02:31:46Z init pr ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org