Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4109#discussion_r23268085
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala 
---
    @@ -114,21 +106,47 @@ class DenseMatrix(val numRows: Int, val numCols: Int, 
val values: Array[Double])
       require(values.length == numRows * numCols, "The number of values 
supplied doesn't match the " +
         s"size of the matrix! values.length: ${values.length}, numRows * 
numCols: ${numRows * numCols}")
     
    -  override def toArray: Array[Double] = values
    +  override def toArray: Array[Double] = {
    --- End diff --
    
    Note that we assumed this is cheap for dense matrices before. Could you 
check its usage?


---
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

Reply via email to