Github user dbtsai commented on a diff in the pull request:
https://github.com/apache/spark/pull/12504#discussion_r60313819
--- Diff: mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala
---
@@ -158,6 +159,13 @@ sealed trait Matrix extends Serializable {
*/
@Since("1.5.0")
def numActives: Int
+
+ /**
+ * Convert this matrix to the new mllib-local representation.
+ * This does NOT copy the data; it copies references.
+ */
+ private[spark]
+ def toNew: newlinalg.Matrix
--- End diff --
Yes. Since this looks more like casting not converting, so `as` maybe more
meaningful for users.
---
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]