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

    https://github.com/apache/spark/pull/17940#discussion_r117592116
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala 
---
    @@ -992,7 +992,16 @@ object Matrices {
             new DenseMatrix(dm.rows, dm.cols, dm.data, dm.isTranspose)
           case sm: BSM[Double] =>
             // There is no isTranspose flag for sparse matrices in Breeze
    -        new SparseMatrix(sm.rows, sm.cols, sm.colPtrs, sm.rowIndices, 
sm.data)
    +        val nsm = if (sm.rowIndices.length > sm.activeSize) {
    +          // This sparse matrix has trainling zeros.
    --- End diff --
    
    trailing


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

Reply via email to